From b7c82a7ff11dee3988e346005eb3627ab0964ae7 Mon Sep 17 00:00:00 2001
From: Samuel W. Flint <swflint@flintfam.org>
Date: Tue, 25 May 2021 17:48:12 +0000
Subject: [PATCH] Change how the copyright string is constructed (#206)

---
 layouts/partials/sidebar.html |    2 +-
 README.md                     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 576c526..2b6b4c5 100644
--- a/README.md
+++ b/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"
 ```
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 3d2ec02..39da7dc 100644
--- a/layouts/partials/sidebar.html
+++ b/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>

--
Gitblit v1.10.0