Skip to content

Commit

Permalink
Use css.Sass instead of resources.ToCSS
Browse files Browse the repository at this point in the history
WARN  deprecated: resources.ToCSS was deprecated in Hugo v0.128.0 and will be removed in a future release. Use css.Sass instead.

Signed-off-by: Daniel Holbach <[email protected]>
  • Loading branch information
dholbach authored and zjedi committed Sep 15, 2024
1 parent be2014b commit ae3f16b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{{ $stylesheetFonts := resources.Get "css/fonts.css" }}
{{ $stylesheetGeneric := resources.Get "css/generic.css" }}

{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | resources.ToCSS ) }}
{{ $stylesheetScreen := ( resources.Get "css/_index.scss" | css.Sass ) }}

{{ $stylesheet := slice $stylesheetNormalize $stylesheetFA $stylesheetFonts $stylesheetGeneric $stylesheetScreen | resources.Concat "css/style.css" | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $stylesheet.RelPermalink }}" type="text/css" integrity="{{ $stylesheet.Data.Integrity }}" />
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
publish = "exampleSite/public"

[build.environment]
HUGO_VERSION = "0.124.0"
HUGO_VERSION = "0.134.2"
HUGO_THEME = "repo"

[context.production]
Expand Down
2 changes: 1 addition & 1 deletion theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tags = [
"theme"
]
features = ["cover-image", "favicon", "header-menu", "auto-scroll"]
min_version = "0.124.0"
min_version = "0.132.0"

authors = [
{name = "Jan Raasch", homepage = "https://www.janraasch.com"},
Expand Down

0 comments on commit ae3f16b

Please sign in to comment.