From 746988997f032f9ea0d1ae056b90aa792baa7270 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 15 Mar 2026 09:33:07 +0100 Subject: [PATCH] Fix deprecation warning (hugo 0.157.0) --- exampleSite/hugo.toml | 2 +- layouts/partials/carousel.html | 6 +++--- layouts/partials/clients.html | 6 +++--- layouts/partials/features.html | 6 +++--- layouts/partials/testimonials.html | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index b07cb9f80..7d1f323ed 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -446,7 +446,7 @@ pluralizelisttitles = false googleRecaptchaKey = "site_key_for_google_recaptcha" about_us = "

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

" - copyright = "Copyright (c) 2015 - 2016, YourCompany; all rights reserved." + copyright = "Copyright (c) 2015 - 2026, YourCompany; all rights reserved." # Format dates with Go's time formatting date_format = "January 2, 2006" diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html index e3b25c56e..9961836bf 100644 --- a/layouts/partials/carousel.html +++ b/layouts/partials/carousel.html @@ -1,6 +1,6 @@ {{ if default true .Site.Params.CarouselHomepage.enable }} -{{ if isset .Site.Data "carousel" }} -{{ if gt (len .Site.Data.carousel) 0 }} +{{ if isset hugo.Data "carousel" }} +{{ if gt (len hugo.Data.carousel) 0 }}