display current year in footer (#54)
This commit is contained in:
parent
6d4b5dcfbf
commit
a8ae2c5743
@ -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:
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user