all repos — archive/hugo-xmin @ 307a0a9153e55e86954f4e7b8726cc92c172e19e

Customised minimal hugo theme

rename copyright to footer, since the variable copyright is used in the RSS feed

Yihui Xie
commit

307a0a9153e55e86954f4e7b8726cc92c172e19e

parent

d023e3b56011d349703373540dff5cf7e50beb85

3 files changed, 4 insertions(+), 4 deletions(-)

jump to
M exampleSite/config.tomlexampleSite/config.toml
@@ -33,4 +33,4 @@ url = "/index.xml"
[params] description = "A website built through Hugo and blogdown." - copyright = "© [Yihui Xie](https://yihui.name) 2017 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)" + footer = "© [Yihui Xie](https://yihui.name) 2017 | [Github](https://github.com/yihui) | [Twitter](https://twitter.com/xieyihui)"
M exampleSite/content/about.mdexampleSite/content/about.md
@@ -43,11 +43,11 @@ ```
Alternatively, you can add `menu: main` to the YAML metadata of any of your pages, so that these pages will appear in the menu. -The page footer can be defined in `.Params.copyright`, and the text is treated as Markdown, e.g., +The page footer can be defined in `.Params.footer`, and the text is treated as Markdown, e.g., ``` [params] - copyright = "© [Yihui Xie](https://yihui.name) 2017" + footer = "© [Yihui Xie](https://yihui.name) 2017" ``` # Custom layouts
M layouts/partials/footer.htmllayouts/partials/footer.html
@@ -1,6 +1,6 @@
<footer> {{ partial "foot_custom.html" . }} - {{ with .Site.Params.copyright }} + {{ with .Site.Params.footer }} <hr/> {{ . | markdownify }} {{ end }}