Skip to content

Commit

Permalink
config: fix pagination config key, ToCSS -> css.Sass
Browse files Browse the repository at this point in the history
This updates the config key change and the migration from
`ToCSS` -> `css.Sass`.
  • Loading branch information
patdavid committed Sep 30, 2024
1 parent 1d01567 commit 9f90a70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
10 changes: 10 additions & 0 deletions layouts/partials/css.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- Our custom CSS -->
{{ 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 }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ 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 }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}

0 comments on commit 9f90a70

Please sign in to comment.