display current year in footer (#54)

This commit is contained in:
Alexander Fallenstedt 2021-12-30 19:10:33 -08:00 committed by GitHub
parent 6d4b5dcfbf
commit a8ae2c5743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ menu:
params: params:
description: "A website built through Hugo and blogdown." description: "A website built through Hugo and blogdown."
footer: "© [Yihui Xie](https://yihui.org) 2017 -- 2021 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)" footer: "© [Yihui Xie](https://yihui.org) 2017 -- {Year} | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
markup: markup:
highlight: highlight:

View File

@ -2,7 +2,7 @@
{{ partial "foot_custom.html" . }} {{ partial "foot_custom.html" . }}
{{ with .Site.Params.footer }} {{ with .Site.Params.footer }}
<hr/> <hr/>
{{ . | markdownify }} {{ replace . "{Year}" now.Year | markdownify}}
{{ end }} {{ end }}
</footer> </footer>
</body> </body>