From f889e52566445b2ca33a75c4ccf9abf7a0b71d44 Mon Sep 17 00:00:00 2001 From: mvtango Date: Wed, 29 Jan 2025 02:46:56 +0100 Subject: [PATCH] Three hugo deprecations (#664) * as per deprecation note: ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.137.0. Use hugo.IsMultilingual instead. * as per deprecation note: ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.137.0. Use hugo.IsMultilingual instead. * deprecated: .Sites.First was deprecated in Hugo v0.127.0 and will be removed in a future release. * as per deprecation note: ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.137.0. Use hugo.IsMultilingual instead. * resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead. * ignore ressources from example site --- .gitignore | 1 + layouts/partials/docs/html-head.html | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5944200..f29c7d8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ public/ exampleSite/public/ .DS_Store .hugo_build.lock +resources/ diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index cf45edb..6a6d0ec 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -25,7 +25,6 @@ {{- $styles := resources.Get "book.scss" | resources.ExecuteAsTemplate "book.scss" . | css.Sass | resources.Minify | resources.Fingerprint }} - {{- if default true .Site.Params.BookSearch -}} {{- $searchJSFile := printf "%s.search.js" .Language.Lang }} {{- $searchJS := resources.Get "search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | resources.Fingerprint }}