mirror of
https://github.com/caressofsteel/hugo-story.git
synced 2024-12-22 01:25:07 +01:00
Fix deprecation warning emitted from hugo 0.128.x
This commit is contained in:
parent
b05c4ffd70
commit
195a94e675
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 }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- 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) }}
|
{{ $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 }}">
|
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
|
{{ $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 }}">
|
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
|
||||||
{{ end }}
|
{{ 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 := 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>
|
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<!-- CSS -->
|
<!-- 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) }}
|
{{ $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 }}">
|
<link rel="stylesheet" href="{{ ($style).RelPermalink }}">
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
|
{{ $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 }}">
|
<link rel="stylesheet" href="{{ ($style | minify).RelPermalink }}">
|
||||||
{{ end }}
|
{{ 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 := 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>
|
<noscript><link rel="stylesheet" href="{{ ($noscript).RelPermalink }}" /></noscript>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
Loading…
Reference in New Issue
Block a user