Skip to content

Commit a8a3e1a

Browse files
committed
Add a static copyright year
Leave in the JS as a guarantee that the year is current, since the static year won't be updated until the site is rebuilt.
1 parent 1b31963 commit a8a3e1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/partials/footer.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030

3131
<p>
3232
&copy;
33+
<span id="copyright-year">{ now.Year }}</span>
3334
<script type="text/javascript">
34-
document.write(new Date().getFullYear());
35+
document.getElementById('copyright-year').textContent = new Date().getFullYear();
3536
</script>
3637
Danny Guo
3738
</p>

0 commit comments

Comments
 (0)