From 84a5028c896a6d80fd65aef96450343a2641faec Mon Sep 17 00:00:00 2001 From: daudix Date: Thu, 20 Jun 2024 09:08:53 +0300 Subject: [PATCH] Allow settings custom copyright --- config.toml | 2 ++ templates/partials/footer.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 1150ef7..e05d7b0 100644 --- a/config.toml +++ b/config.toml @@ -116,6 +116,8 @@ show_copyright = true show_powered_by = true # Whether to show link to website source show_source = false +# Custom copyright text +# copyright = "© Aperture Science Innovators, 1972" # Based on https://carlschwan.eu/2020/12/29/adding-comments-to-your-static-blog-with-mastodon/ # diff --git a/templates/partials/footer.html b/templates/partials/footer.html index 7cc1744..8feace3 100644 --- a/templates/partials/footer.html +++ b/templates/partials/footer.html @@ -35,7 +35,11 @@ {% if config.extra.footer.show_copyright %}

- © {{ config.title }}, {{ now() | date(format="%Y") }} + {% if config.extra.footer.copyright %} + {{ config.extra.footer.copyright }} + {% else %} + © {{ config.title }}, {{ now() | date(format="%Y") }} + {% endif %}

{% endif %}