diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 65719378..59b9ae11 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -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: diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 3f46ea54..f603e172 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,7 @@ {{ partial "foot_custom.html" . }} {{ with .Site.Params.footer }}
- {{ . | markdownify }} + {{ replace . "{Year}" now.Year | markdownify}} {{ end }}