From 0ac12ab2f1a0b9a86690c7e982c7469eee5f6f10 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 1 Jan 2024 18:06:00 +0100 Subject: [PATCH] add automatic copyright year --- config.yml | 3 +-- layouts/partials/footer.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config.yml b/config.yml index 39157426..555a293f 100644 --- a/config.yml +++ b/config.yml @@ -27,8 +27,7 @@ params: - media/zeichnung.webp impressumURL: pages/impressum dseURL: pages/datenschutz - copyright: "Copyright © 2023 Georg-Cantor-Gymnasium Halle (Saale). Made - with :heart: and [Hugo](https://gohugo.io)." + copyright: 'Georg-Cantor-Gymnasium Halle (Saale). Made with :heart: and [Hugo](https://gohugo.io).' plugins: css: - https://assets.cantorgymnasium.de/bootstrap/v5/css/bootstrap.min.css diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index af69f5b6..9ded637e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -49,7 +49,7 @@
-

{{ .Site.Params.copyright | markdownify | emojify }}

+

Copyright © {{ time.Format "2006" now }} {{ .Site.Params.copyright | markdownify | emojify }}