From c8e6218a6d4ffd8640bbd86a92374102bf27e75d Mon Sep 17 00:00:00 2001 From: Alan Tanner Date: Sun, 26 Feb 2023 13:45:57 -0500 Subject: [PATCH] added dynamic copyright year if the param copyright contains the placeholder {year} the current year is returned --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2d572f91..6673d945 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -19,7 +19,7 @@ {{/* Copyright */}} {{ if .Site.Params.footer.showCopyright | default true }}

- {{- with .Site.Params.copyright }} + {{- with replace .Site.Params.copyright "{year}" now.Year }} {{ . | emojify | markdownify }} {{- else }} ©