feat: footer info

This commit is contained in:
2025-09-28 18:47:32 +02:00
parent 7a0b34c685
commit 9c1cbfef90
4 changed files with 28 additions and 2 deletions

View File

@@ -205,6 +205,20 @@ form:
size: medium
default: "2022"
footer.info:
type: text
label: Footer info
help: Additional info displayed in footer
size: medium
default: "Made with ♥️ by Tymoteusz Jóźwiak"
footer.info_en:
type: text
label: Footer info [EN]
help: English translation of additional info displayed in footer
size: medium
default: "Made with ♥️ by Tymoteusz Jóźwiak"
analytics:
type: textarea
label: Analytics script

View File

@@ -19,6 +19,8 @@ footer:
title_en:
url:
year:
info:
info_en:
hashover:
domain:
title:

View File

@@ -3,7 +3,12 @@
{% else %}
{% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %}
{% endif %}
<span class="footer-copyright">&copy; {{ year }}</span>
<span class="footer-copyright">
&copy; {{ year }}
{% if theme_config.footer.info_en is defined and theme_config.footer.info_en %}
{{ theme_config.footer.info_en }}
{% endif %}
</span>
<span class="footer-link">
<a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title_en }}</a>
</span>

View File

@@ -3,7 +3,12 @@
{% else %}
{% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %}
{% endif %}
<span class="footer-copyright">&copy; {{ year }}</span>
<span class="footer-copyright">
&copy; {{ year }}
{% if theme_config.footer.info is defined and theme_config.footer.info %}
{{ theme_config.footer.info }}
{% endif %}
</span>
<span class="footer-link">
<a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title }}</a>
</span>