From 5358dd00ad90fefcb50036c911382c46f38094b0 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sun, 24 Mar 2019 18:57:04 +0000 Subject: [PATCH] feat(footer): add ability to auto update the copyright year To use, add `{year}` to `Copyright` option in `config.toml`. Displays current year. Close #976 --- layouts/partials/footer_section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer_section.html b/layouts/partials/footer_section.html index 6f730f0d..44492f5a 100644 --- a/layouts/partials/footer_section.html +++ b/layouts/partials/footer_section.html @@ -6,7 +6,7 @@ {{ end }}

- {{ with .Site.Copyright }}{{ . | markdownify}} · {{ end }} + {{ with .Site.Copyright }}{{ replace . "{year}" now.Year | markdownify}} · {{ end }} Powered by the Academic theme for