Skip to content

Commit 2cf0e18

Browse files
Fix docs build with Hugo v0.128+ by replacing deprecated resources.ToCSS (#7270)
* docs: fix Hugo build by replacing deprecated resources.ToCSS function Signed-off-by: ShivamJha2436 <[email protected]> * docs: use modern css.Sass pipeline and update Netlify Hugo version Signed-off-by: ShivamJha2436 <[email protected]> * docs: revert Hugo version and SCSS pipeline for Netlify compatibility Signed-off-by: ShivamJha2436 <[email protected]> * bump: Hugo to latest version Signed-off-by: ShivamJha2436 <[email protected]> --------- Signed-off-by: ShivamJha2436 <[email protected]>
1 parent ea05075 commit 2cf0e18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
publish = "site/public"
55

66
[build.environment]
7-
HUGO_VERSION = "0.119.0"
7+
HUGO_VERSION = "0.152.0"
88

99
[context.production.environment]
1010
HUGO_ENV = "production"

site/themes/contour/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
99
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
1010
{{ $options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "enableSourceMap" true "includePaths" (slice "node_modules/myscss")) }}
11-
{{ $style := resources.Get "scss/site.scss" | resources.ToCSS $options }}
11+
{{ $style := resources.Get "scss/site.scss" | css.Sass $options }}
1212
<link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}" media="screen">
1313
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
1414
<style>

0 commit comments

Comments
 (0)