diff options
| -rw-r--r-- | config.toml | 3 | ||||
| -rw-r--r-- | templates/base.html | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 6ecae61..9d985a0 100644 --- a/config.toml +++ b/config.toml @@ -81,3 +81,6 @@ instagram = "your-user-name" pinterest = "your-user-name" twitch = "your-user-name" youtube = "your-channel-id" + +start_year = 2019 # optional, copyright start year +# end_year = 2022 #optional, copyright end year, defaults to current year if unset diff --git a/templates/base.html b/templates/base.html index 7f6f95f..0e826da 100644 --- a/templates/base.html +++ b/templates/base.html @@ -120,7 +120,13 @@ <hr> <center> <p>{{ social_macros::social_links(social_config=config.extra.social) }}</p> - {# Copyright #}<p>Copyright © 2019-{{ now() | date(format="%Y") }} {{ config.title }}</p> + + {# Copyright #} + {% set start_year=config.extra.start_year | default(value="") %} + {% if start_year %}{% set start_year=start_year ~ "-" %}{% endif %} + {% set end_year=config.extra.end_year | default(value=now() | date(format="%Y")) %} + <p>Copyright © {{ start_year ~ end_year}} {{ config.title }}</p> + <p>{% for i in config.extra.menu_footer %}<a href="{{ get_url(path=i.url, trailing_slash=i.slash) }}">{{ i.name }}</a> {% endfor %}</p> {# Optional footer credit #} {% if config.extra.footer_credit %} |
