set max width of pages in Hugo config.toml, retrieve value from SCSS

https://gohugo.io/hugo-pipes/resource-from-template/
This commit is contained in:
jake committed 2020-03-27 20:58:52 -04:00
1 parent 146b1047e1
commit bc3e1f9309
12 files changed
+19 -13

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
{{ $style := resources.Get "sass/main.scss" | resources.ToCSS (dict "targetPath" "style.css") | resources.PostCSS (dict "config" "postcss.config.js") }}
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "sass/main.scss" . | resources.ToCSS (dict "targetPath" "style.css") | resources.PostCSS (dict "config" "postcss.config.js") }}
<link rel="stylesheet" href="{{ $style.Permalink }}">