From 9f90a70a822defb1437b4899057de9a35a460d9e Mon Sep 17 00:00:00 2001 From: Pat David Date: Mon, 30 Sep 2024 15:40:14 -0500 Subject: [PATCH] config: fix pagination config key, ToCSS -> css.Sass This updates the config key change and the migration from `ToCSS` -> `css.Sass`. --- config.yaml | 4 ++-- layouts/partials/css.html | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/css.html diff --git a/config.yaml b/config.yaml index 60a0c26da8..2f4a2790f7 100644 --- a/config.yaml +++ b/config.yaml @@ -21,8 +21,8 @@ params: frontmatter: date: [":filename", ":default"] -paginate: 20 -paginatePath: blog +pagination.pagerSize: 20 +pagination.path: blog enableEmoji: true permalinks: posts: /:year/:month/:day/:slug/ diff --git a/layouts/partials/css.html b/layouts/partials/css.html new file mode 100644 index 0000000000..8d62c701e6 --- /dev/null +++ b/layouts/partials/css.html @@ -0,0 +1,10 @@ + +{{ if hugo.IsServer }} +{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" true "includePaths" (slice "themes/hugo-bootstrap-bare/assets/node_modules/bootstrap/scss")) }} +{{ $style := resources.Get "sass/main.scss" | css.Sass $options | fingerprint }} + +{{ else }} +{{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed" "enableSourceMap" false "includePaths" (slice "themes/hugo-bootstrap-bare/assets/node_modules/bootstrap/scss")) }} +{{ $style := resources.Get "sass/main.scss" | css.Sass $options | minify | fingerprint }} + +{{ end }}