From 74beacb274024dcaf265fd5ac06620ba98691213 Mon Sep 17 00:00:00 2001 From: Nikos Kontogeorgis <51276659+NikosKont@users.noreply.github.com> Date: Sun, 2 Mar 2025 02:47:22 +0200 Subject: [PATCH] Refactor footer content (#3041) Refactor footer content into a reusable variable for cleaner code --- _includes/footer.liquid | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/_includes/footer.liquid b/_includes/footer.liquid index 102af14..f028dfe 100644 --- a/_includes/footer.liquid +++ b/_includes/footer.liquid @@ -1,16 +1,20 @@ +{% capture footer_contents %} + © Copyright {{ site.time | date: '%Y' }} + {{ site.first_name }} + {{ site.middle_name }} + {{ site.last_name }}. {{ site.footer_text }} + {% if site.impressum_path %} + Impressum. + {% endif %} + {% if site.last_updated %} + Last updated: {{ 'now' | date: '%B %d, %Y' }}. + {% endif %} +{% endcapture %} + {% if site.footer_fixed %} {% else %} @@ -20,16 +24,7 @@ {% endif %}