rename copyright to footer, since the variable copyright is used in the RSS feed
This commit is contained in:
parent
d023e3b560
commit
307a0a9153
|
@ -33,4 +33,4 @@ footnotereturnlinkcontents = "↩"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
description = "A website built through Hugo and blogdown."
|
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)"
|
||||||
|
|
|
@ -43,11 +43,11 @@ You can define the menu through `menu.main`, e.g.,
|
||||||
|
|
||||||
Alternatively, you can add `menu: main` to the YAML metadata of any of your pages, so that these pages will appear in the menu.
|
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]
|
[params]
|
||||||
copyright = "© [Yihui Xie](https://yihui.name) 2017"
|
footer = "© [Yihui Xie](https://yihui.name) 2017"
|
||||||
```
|
```
|
||||||
|
|
||||||
# Custom layouts
|
# Custom layouts
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<footer>
|
<footer>
|
||||||
{{ partial "foot_custom.html" . }}
|
{{ partial "foot_custom.html" . }}
|
||||||
{{ with .Site.Params.copyright }}
|
{{ with .Site.Params.footer }}
|
||||||
<hr/>
|
<hr/>
|
||||||
{{ . | markdownify }}
|
{{ . | markdownify }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue