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
|
@ -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