From 9b47909de2aae98697467fc362a506a114c66db3 Mon Sep 17 00:00:00 2001
From: Carlo Corti <araknoid@gmail.com>
Date: Fri, 01 Jan 2021 17:21:45 +0000
Subject: [PATCH] Added the possibility to configure the copyright years
---
exampleSite/config.toml | 1 +
layouts/partials/sidebar.html | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
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