mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-21 09:05:07 +01:00
Merge pull request #54 from deining/fix-deprecation-warning
Fix deprecation warning emitted from hugo 0.128.x
This commit is contained in:
commit
e3e2b8d867
2
exampleSite/.gitignore
vendored
Normal file
2
exampleSite/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
.hugo_build.lock
|
||||
resources/
|
@ -9,14 +9,14 @@
|
||||
{{ end }}
|
||||
|
||||
<!-- CSS -->
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||
{{ else }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
|
||||
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
|
||||
{{ else }}
|
||||
|
@ -9,14 +9,14 @@
|
||||
{{ end }}
|
||||
|
||||
<!-- CSS -->
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||
{{ else }}
|
||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
|
||||
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ if .Site.IsServer }}
|
||||
{{ if hugo.IsServer }}
|
||||
{{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }}
|
||||
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
|
||||
{{ else }}
|
||||
|
Loading…
Reference in New Issue
Block a user