deprecation fix for 0.134.0
All checks were successful
/ site (push) Successful in 1s

This commit is contained in:
Артём 2024-09-03 18:30:25 +03:00
parent 4fd5108fd0
commit 48da71718d
No known key found for this signature in database
GPG key ID: EEFBB39006B28920
2 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,6 @@
baseurl = "https://sadium.cyou/" baseurl = "https://sadium.cyou/"
languageCode = "ru-ru" languageCode = "ru-ru"
#theme = "hugo-theme-terminal" #theme = "hugo-theme-terminal"
paginate = 5
DefaultContentLanguage = "ru" DefaultContentLanguage = "ru"
# defaultContentLanguageInSubdir = true # defaultContentLanguageInSubdir = true
# enableGitInfo = true # enableGitInfo = true
@ -9,6 +8,9 @@ DefaultContentLanguage = "ru"
# [frontmatter] # [frontmatter]
# lastmod = ['lastmod', ':git', 'date', 'publishDate'] # lastmod = ['lastmod', ':git', 'date', 'publishDate']
[pagination]
pagerSize = 5
[markup] [markup]
[markup.tableOfContents] [markup.tableOfContents]
endLevel = 5 endLevel = 5

View file

@ -18,14 +18,14 @@
{{ if and (isset .Params "color") (not (eq .Params.color "")) }} {{ if and (isset .Params "color") (not (eq .Params.color "")) }}
{{ $localColorCss := resources.Get (printf "css/color/%s.scss" .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) }} {{ $localCss := slice $localColorCss $defaultStyles | resources.Concat (printf "css/%s-local.scss" .Params.color) }}
{{ $localColorStyles := $localCss | resources.ToCSS }} {{ $localColorStyles := $localCss | css.Sass }}
<link rel="stylesheet" href="{{ $localColorStyles.Permalink }}"> <link rel="stylesheet" href="{{ $localColorStyles.Permalink }}">
{{ else }} {{ else }}
<!-- Theme Variables --> <!-- Theme Variables -->
{{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }} {{ $colorCss := resources.Get (printf "css/color/%s.scss" ($.Site.Params.ThemeColor | default "orange")) }}
{{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }} {{ $css := slice $colorCss $defaultStyles | resources.Concat "css/base.scss" }}
{{ $options := (dict "targetPath" "styles.css" "outputStyle" "compressed" "enableSourceMap" true "precision" 6 "includePaths" (slice "node_modules")) }} {{ $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 }}
<link rel="stylesheet" href="{{ $styles.Permalink }}"> <link rel="stylesheet" href="{{ $styles.Permalink }}">
{{ end }} {{ end }}