forked from tsc-vfl/hugo-page
Move SCSS file to layout folder
This commit is contained in:
parent
d6598fb201
commit
8a29c2d11a
@ -2,7 +2,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction)) }}
|
||||||
{{ $scss := resources.Get "main.scss" | resources.ToCSS $options }}
|
{{ $scss := resources.Get "css/main.scss" | resources.ToCSS $options }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $scss.RelPermalink }}">
|
||||||
{{ $title := print .Site.Title " | " .Title }}
|
{{ $title := print .Site.Title " | " .Title }}
|
||||||
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user