mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-11-22 00:19:19 +02:00
display current year in footer (#54)
This commit is contained in:
parent
6d4b5dcfbf
commit
a8ae2c5743
|
@ -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:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{ partial "foot_custom.html" . }}
|
||||
{{ with .Site.Params.footer }}
|
||||
<hr/>
|
||||
{{ . | markdownify }}
|
||||
{{ replace . "{Year}" now.Year | markdownify}}
|
||||
{{ end }}
|
||||
</footer>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue