diff options
-rw-r--r-- | layouts/partials/footer.gmi | 3 | ||||
-rw-r--r-- | layouts/partials/footer.html | 3 |
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 |