Change how the copyright string is constructed (#206)
- If .Site.Params.copyright is set, treat it as markdown (links to a
license page are now possible).
- Only if it's not set, show the author and the current year.
| | |
| | | Add your own favicon in `static/favicons/favicon.ico`. |
| | | |
| | | ### Copyright |
| | | By default, the copyright will show the current year, but you can change this by configuring the `copyright` parameter. |
| | | By default, the copyright will show the authors name followed by the current year, but you can change this by configuring the `copyright` parameter. |
| | | ```toml |
| | | copyright = "2020-2021" |
| | | ``` |
| | |
| | | {{ end }} |
| | | </ul> |
| | | <div class="footer"> |
| | | <div class="by_farbox">© {{ .Site.Params.author }} {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ now.Format "2006"}} {{end}}</div> |
| | | <div class="by_farbox">© {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ .Site.Params.author }} {{ now.Format "2006"}} {{end}}</div> |
| | | </div> |
| | | </div> |