diff --git a/hugo.toml b/hugo.toml index e116439..1a4a565 100644 --- a/hugo.toml +++ b/hugo.toml @@ -91,7 +91,12 @@ pagination = { pagerSize = 6, path = "page" } # Header Logo [params.header.logo] src = "/images/logo-darkmode.png" - + + [params.pdfFolder] + name = "Voir la brochure CHILL" + filename = "Brochure_Chill.pdf" + url = "/pdf/Brochure_Chill.pdf" + # Global CTA Configuration (optional) [params.cta] enable = true @@ -154,13 +159,7 @@ pagination = { pagerSize = 6, path = "page" } name = "Nous contacter" url = "/contact" weight = 5 - - [[menu.footer_column_1]] - name = "Voir la brochure CHILL" - url = "/pdf/Brochure_Chill.pdf" - weight = 1 - - [[menu.footer_column_2]] + [[menu.footer_column]] name = "Champs-Libres" url = "https://www.champs-libres.coop/" weight = 1 diff --git a/themes/chill-theme/layouts/partials/footer.html b/themes/chill-theme/layouts/partials/footer.html index 504f629..c79ff18 100644 --- a/themes/chill-theme/layouts/partials/footer.html +++ b/themes/chill-theme/layouts/partials/footer.html @@ -15,15 +15,16 @@
- {{ range .Site.Menus.footer_column_1 }} - {{ .Name }} - {{ end }} + {{ with .Site.Params.pdfFolder }} + {{ .Name }} + {{ end }} +
- {{ range .Site.Menus.footer_column_2 }} - {{ .Name }} + {{ range .Site.Menus.footer_column }} + {{ .Name }} {{ end }}
diff --git a/themes/chill-theme/layouts/shortcodes/client-logos.html b/themes/chill-theme/layouts/shortcodes/client-logos.html index c520b7a..17f7ed0 100644 --- a/themes/chill-theme/layouts/shortcodes/client-logos.html +++ b/themes/chill-theme/layouts/shortcodes/client-logos.html @@ -9,6 +9,11 @@ {{ range .Page.Params.client_logos }} {{ .name }} {{ end }} + {{ if $shouldAnimate }} + {{ range .Page.Params.client_logos }} + + {{ end }} + {{ end }} @@ -37,11 +42,13 @@ } .logos-slide { - display: inline-block; + display: flex; + align-items: center; + width: max-content; } .logos-slide.animate { - animation: 10s slide infinite linear; + animation: 24s slide infinite linear; } @@ -68,7 +75,7 @@ } to { - transform: translateX(calc(-100% / 2)); + transform: translateX(-50%); } } @@ -79,7 +86,7 @@ /* Mobile-specific animation speed */ @media (max-width: 768px) { .logos-slide.animate { - animation: 8s slide infinite linear; + animation: 16s slide infinite linear; } } \ No newline at end of file