From 9c1cbfef90080b52d920af7141943d99e2f1ef87 Mon Sep 17 00:00:00 2001 From: tymoteuszjozwiak Date: Sun, 28 Sep 2025 18:47:32 +0200 Subject: [PATCH] feat: footer info --- blueprints.yaml | 14 ++++++++++++++ paxover.yaml | 2 ++ templates/en/partials/footer.html.twig | 7 ++++++- templates/partials/footer.html.twig | 7 ++++++- 4 files changed, 28 insertions(+), 2 deletions(-) diff --git a/blueprints.yaml b/blueprints.yaml index e0a5b23..74b7df1 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -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 diff --git a/paxover.yaml b/paxover.yaml index 04bf638..a1941a8 100644 --- a/paxover.yaml +++ b/paxover.yaml @@ -19,6 +19,8 @@ footer: title_en: url: year: + info: + info_en: hashover: domain: title: diff --git a/templates/en/partials/footer.html.twig b/templates/en/partials/footer.html.twig index f7ece81..323ce08 100644 --- a/templates/en/partials/footer.html.twig +++ b/templates/en/partials/footer.html.twig @@ -3,7 +3,12 @@ {% else %} {% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %} {% endif %} -© {{ year }} + + © {{ year }} + {% if theme_config.footer.info_en is defined and theme_config.footer.info_en %} + {{ theme_config.footer.info_en }} + {% endif %} + {{ theme_config.footer.title_en }} diff --git a/templates/partials/footer.html.twig b/templates/partials/footer.html.twig index 185091e..9d64a5a 100644 --- a/templates/partials/footer.html.twig +++ b/templates/partials/footer.html.twig @@ -3,7 +3,12 @@ {% else %} {% set year = theme_config.footer.year ~ "-" ~ "now"|date("y") %} {% endif %} -© {{ year }} + + © {{ year }} + {% if theme_config.footer.info is defined and theme_config.footer.info %} + {{ theme_config.footer.info }} + {% endif %} + {{ theme_config.footer.title }} \ No newline at end of file