Compare commits

...

2 Commits

Author SHA1 Message Date
3187fbf4f9 improve validation 2025-09-28 18:49:36 +02:00
9c1cbfef90 feat: footer info 2025-09-28 18:47:32 +02:00
4 changed files with 28 additions and 2 deletions

View File

@@ -205,6 +205,20 @@ form:
size: medium size: medium
default: "2022" 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: analytics:
type: textarea type: textarea
label: Analytics script label: Analytics script

View File

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

View File

@@ -3,7 +3,12 @@
{% else %} {% else %}
{% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %} {% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %}
{% endif %} {% 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 is not empty %}
{{ theme_config.footer.info_en }}
{% endif %}
</span>
<span class="footer-link"> <span class="footer-link">
<a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title_en }}</a> <a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title_en }}</a>
</span> </span>

View File

@@ -3,7 +3,12 @@
{% else %} {% else %}
{% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %} {% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %}
{% endif %} {% 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 is not empty %}
{{ theme_config.footer.info }}
{% endif %}
</span>
<span class="footer-link"> <span class="footer-link">
<a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title }}</a> <a href="{{ theme_config.footer.url }}">{{ theme_config.footer.title }}</a>
</span> </span>