From b53294f7fb8afbb9565dcd46f2985257c8075e5c Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 18 Jul 2023 09:24:20 -0700 Subject: Additional Copyright Configuration --- templates/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates') 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")) %} - © {{ copyright_start_year ~ copyright_end_year }} {{ config.title }}

+ {%- 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 %} + {{ copyright_start_string ~ copyright_start_year ~ copyright_end_year ~ copyright_entity ~ copyright_end_string }}

{#- Copyright END #} {%- if config.extra.menu_footer %}