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

Alexander Bilz
01.47.2021 cba036d7d04aaac0abf020da93eeb35cbdbd88e2
Merge pull request #105 from araknoid/copyright-years

Added the possibility to configure the copyright years
3 files modified
9 ■■■■ changed files
README.md 6 ●●●●● patch | view | raw | blame | history
exampleSite/config.toml 1 ●●●● patch | view | raw | blame | history
layouts/partials/sidebar.html 2 ●●● patch | view | raw | blame | history
README.md
@@ -71,6 +71,12 @@
Add you 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.
```toml
copyright = "2020-2021"
```
### Navigation items
Non-content entries can be added right from the `config.toml` file.
exampleSite/config.toml
@@ -21,6 +21,7 @@
[params]
title = "I'm Jane Doe"
author = "Jane Doe"
#copyright = "2020-2021"
description = "Call me Jane"
profilePicture = "images/profile.jpg"
keywords = ""
layouts/partials/sidebar.html
@@ -18,6 +18,6 @@
        {{ end }}
    </ul>
    <div class="footer">
        <div class="by_farbox">&copy; {{ .Site.Params.author }} {{ now.Format "2006"}} </div>
        <div class="by_farbox">&copy; {{ .Site.Params.author }} {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ now.Format "2006"}} {{end}}</div>
    </div>
</div>