summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2022-12-08 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2022-12-08 00:00:00 +0000
commitb919a94098c79ae0e23aceaacc5b0e2974c729425a7126c76270f905a8d6c218 (patch)
treee2e4463fd0d73826449d8a1643317b9c4be88019e111fd219c08aa139111509f
parent95991cb07f52fd6d0c179f4e1bbaa036ef8c85ef19fee246a27010a77afdb7e8 (diff)
Simplify copyright notice
-rw-r--r--layouts/partials/footer.gmi3
-rw-r--r--layouts/partials/footer.html3
2 files changed, 2 insertions, 4 deletions
diff --git a/layouts/partials/footer.gmi b/layouts/partials/footer.gmi
index 2dab362..cb45be3 100644
--- a/layouts/partials/footer.gmi
+++ b/layouts/partials/footer.gmi
@@ -1,2 +1 @@
-Unless otherwise noted, the writing in this journal is licensed under {{ $.Site.Copyright | safeHTML }}
-Copyright {{ .Site.Params.beginCopyrightYear | safeHTML }}-{{ now.Format "2006" | safeHTML }} {{ $.Site.Author.name | safeHTML }}
+{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") | safeHTML }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8a59ca9..5f8ffc6 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,4 +1,3 @@
<footer class="footer">
- <p class="footer__text">Unless otherwise noted, the writing in this journal is licensed under {{ $.Site.Copyright }}<br>
-Copyright {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ $.Site.Author.name }}</p>
+ <p class="footer__text">{{ replace $.Site.Copyright "{currentYear}" (now.Format "2006") }}</p>
</footer> \ No newline at end of file