aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index e8706a6..b39bbc0 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -120,10 +120,15 @@
{{- social_macros::social_links(config=config) }}
{#- Copyright START #}
+ {%- set copyright_start_string=config.extra.copyright_start_string | default(value="©") %}
+ {%- if copyright_start_string %}{%- set copyright_start_string=copyright_start_string ~ " " %}{%- endif %}
{%- set copyright_start_year=config.extra.copyright_start_year | default(value="") %}
{%- if copyright_start_year %}{%- set copyright_start_year=copyright_start_year ~ "-" %}{%- endif %}
{%- set copyright_end_year=config.extra.copyright_end_year | default(value=now() | date(format="%Y")) %}
- <p{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> &copy; {{ copyright_start_year ~ copyright_end_year }} {{ config.title }}</p>
+ {%- if config.extra.copyright_entity %}{%- set copyright_entity= " " ~ config.extra.copyright_entity %}{%- else %}{%- set copyright_entity= " " ~ config.title %}{%- endif %}
+ {%- set copyright_end_string=config.extra.copyright_end_string | default(value="") %}
+ {%- if copyright_end_string %}{%- set copyright_end_string= " " ~ copyright_end_string %}{%- endif %}
+ <p{%- if config.extra.footer_size %} class="{{ config.extra.footer_size }}"{% endif %}> {{ copyright_start_string ~ copyright_start_year ~ copyright_end_year ~ copyright_entity ~ copyright_end_string }}</p>
{#- Copyright END #}
{%- if config.extra.menu_footer %}
<nav>