Allow settings custom copyright

This commit is contained in:
daudix
2024-06-20 09:08:53 +03:00
parent 37e0939391
commit 84a5028c89
2 changed files with 7 additions and 1 deletions

View File

@ -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/
#

View File

@ -35,7 +35,11 @@
{% if config.extra.footer.show_copyright %}
<p title="Last built at {{ now() | date(format='%F %a %R') }}">
&copy; {{ config.title }}, {{ now() | date(format="%Y") }}
{% if config.extra.footer.copyright %}
{{ config.extra.footer.copyright }}
{% else %}
&copy; {{ config.title }}, {{ now() | date(format="%Y") }}
{% endif %}
</p>
{% endif %}