Skip to content

Commit

Permalink
display current year in footer (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallenstedt authored Dec 31, 2021
1 parent 6d4b5dc commit a8ae2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ menu:

params:
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:
highlight:
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ partial "foot_custom.html" . }}
{{ with .Site.Params.footer }}
<hr/>
{{ . | markdownify }}
{{ replace . "{Year}" now.Year | markdownify}}
{{ end }}
</footer>
</body>
Expand Down

0 comments on commit a8ae2c5

Please sign in to comment.