From cba036d7d04aaac0abf020da93eeb35cbdbd88e2 Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Fri, 01 Jan 2021 20:47:18 +0000
Subject: [PATCH] Merge pull request #105 from araknoid/copyright-years
---
exampleSite/config.toml | 1 +
layouts/partials/sidebar.html | 2 +-
README.md | 6 ++++++
3 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/README.md b/README.md
index aa278ef..f94965a 100644
--- a/README.md
+++ b/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.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 530dc8f..91a7cbe 100644
--- a/exampleSite/config.toml
+++ b/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 = ""
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 8595ef3..22afa5d 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -18,6 +18,6 @@
{{ end }}
</ul>
<div class="footer">
- <div class="by_farbox">© {{ .Site.Params.author }} {{ now.Format "2006"}} </div>
+ <div class="by_farbox">© {{ .Site.Params.author }} {{ if isset .Site.Params "copyright" }} {{ .Site.Params.copyright }} {{ else }} {{ now.Format "2006"}} {{end}}</div>
</div>
</div>
--
Gitblit v1.10.0