From 0adc161f5b7d35ccc5bf7e6a4de87587a0380ee3 Mon Sep 17 00:00:00 2001 From: Rahat Zaman Date: Wed, 2 Oct 2024 11:41:15 -0600 Subject: [PATCH] Maintainance: Fixed hugo deprecation --- exampleSite/config/_default/config.toml | 4 ++-- layouts/partials/body/main-left.html | 2 +- layouts/partials/body/main-right.html | 2 +- layouts/partials/head/styles.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index d66c5b8..08155ef 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -12,7 +12,8 @@ buildFuture = true copyright = "©{year}, All Rights Reserved" timeout = 10000 enableEmoji = true -paginate = 13 +[pagination] + pagerSize = 13 rssLimit = 100 enableGitInfo = false @@ -37,7 +38,6 @@ googleAnalytics = "" [outputs] home = ["HTML", "RSS", "SearchIndex"] section = ["HTML", "RSS", "SearchIndex"] - taxonomyTerm = ["HTML", "RSS", "SearchIndex"] taxonomy = ["HTML", "RSS", "SearchIndex"] [outputFormats] diff --git a/layouts/partials/body/main-left.html b/layouts/partials/body/main-left.html index ad14ddc..1299aec 100644 --- a/layouts/partials/body/main-left.html +++ b/layouts/partials/body/main-left.html @@ -1,7 +1,7 @@ {{ $isPad := or (in (slice "archive" "posts" "page") .Type) }} {{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }} {{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }} -{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }} +{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }} {{ if eq ($.Param "languagedir") "rtl" }}
diff --git a/layouts/partials/body/main-right.html b/layouts/partials/body/main-right.html index 347152c..8924bf0 100644 --- a/layouts/partials/body/main-right.html +++ b/layouts/partials/body/main-right.html @@ -1,7 +1,7 @@ {{ $isPad := or (in (slice "archive" "posts" "page") .Type) }} {{ $isPad = or $isPad (and (eq .Kind "page") (not (in (slice "about" "contact" "publication") .Type))) }} {{ $isPad = or $isPad (and (eq .Kind "section") (eq .Type "publication")) }} -{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomyTerm")) }} +{{ $isPad = or $isPad (and (eq .Type "tags") (ne .Kind "taxonomy")) }} {{ if ne ($.Param "languagedir") "rtl" }}
diff --git a/layouts/partials/head/styles.html b/layouts/partials/head/styles.html index 624cdcb..20763ff 100644 --- a/layouts/partials/head/styles.html +++ b/layouts/partials/head/styles.html @@ -7,7 +7,7 @@ {{ range .Site.Params.custom_css }} {{ $custom_template := resources.Get . }} {{ if $custom_template }} - {{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }} + {{ $custom_style := $custom_template | css.Sass | resources.Minify }} {{ end }} {{ end }}