From 48da71718d7b6a5f0713508626ae0bd79afdc8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC?= Date: Tue, 3 Sep 2024 18:30:25 +0300 Subject: [PATCH] deprecation fix for 0.134.0 --- config.toml | 4 +++- layouts/partials/head.html | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 10e243f..033fac1 100755 --- a/config.toml +++ b/config.toml @@ -1,7 +1,6 @@ baseurl = "https://sadium.cyou/" languageCode = "ru-ru" #theme = "hugo-theme-terminal" -paginate = 5 DefaultContentLanguage = "ru" # defaultContentLanguageInSubdir = true # enableGitInfo = true @@ -9,6 +8,9 @@ DefaultContentLanguage = "ru" # [frontmatter] # lastmod = ['lastmod', ':git', 'date', 'publishDate'] +[pagination] + pagerSize = 5 + [markup] [markup.tableOfContents] endLevel = 5 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f6708b1..2886506 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,14 +18,14 @@ {{ if and (isset .Params "color") (not (eq .Params.color "")) }} {{ $localColorCss := resources.Get (printf "css/color/%s.scss" .Params.color) }} {{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }} - {{ $localColorStyles := $localCss | resources.ToCSS }} + {{ $localColorStyles := $localCss | css.Sass }} {{ else }} {{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }} {{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }} {{ $options := (dict "targetPath" "styles.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }} - {{ $styles := $css | resources.ToCSS $options }} + {{ $styles := $css | css.Sass $options }} {{ end }}