mirror of https://github.com/lxndrblz/anatole.git

Samuel W. Flint
25.48.2021 b7c82a7ff11dee3988e346005eb3627ab0964ae7
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.
2 files modified
4 ■■■■ changed files
README.md 2 ●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -87,7 +87,7 @@
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"
```
layouts/partials/sidebar.html
@@ -18,6 +18,6 @@
        {{ end }}
    </ul>
    <div class="footer">
        <div class="by_farbox">&copy; {{ .Site.Params.author }} {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ now.Format "2006"}} {{end}}</div>
        <div class="by_farbox">&copy; {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ .Site.Params.author }} {{ now.Format "2006"}} {{end}}</div>
    </div>
</div>