adapt year in footer

I have seen from another site that this script adapts the year automatically without the need to serve the site each year.
pull/76/head
Antoine Soetewey 2022-01-05 15:19:03 +01:00 committed by GitHub
parent 4ca9f334cb
commit 4a3526a22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
{{ . | emojify | markdownify }}
{{- else }}
©
{{ now.Format "2006" }}
<script>document.write(new Date().getFullYear())</script>
{{ .Site.Author.name | markdownify | emojify }}
{{- end }}
</p>