CHANGE sass function the comply to >0.128 hugo
This commit is contained in:
parent
01dcf04b8a
commit
470eb1a169
5 changed files with 12 additions and 14 deletions
|
@ -28,13 +28,14 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="stylesheet" type="text/css" href="/icons/fontawesome.css" />
|
<link rel="stylesheet" type="text/css" href="/icons/fontawesome.css" />
|
||||||
{{ $template := resources.Get "scss/index.scss" }} {{ if $template }} {{
|
{{ $template := resources.Get "scss/index.scss" }} {{ if $template }} {{
|
||||||
$index := $template | resources.ExecuteAsTemplate "css/index.scss" . |
|
$index := $template | resources.ExecuteAsTemplate "css/index.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}" />
|
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}" />
|
||||||
{{ end }} {{ block "styling" . }} {{ end }} {{ $template := resources.Get
|
{{ end }}
|
||||||
"scss/totop.scss" }} {{ if $template }} {{ $totop := $template |
|
{{ block "styling" . }}
|
||||||
resources.ExecuteAsTemplate "css/totop.scss" . | resources.ToCSS (dict
|
{{ end }}
|
||||||
"outputStyle" "compressed") | fingerprint }}
|
{{ $template := resources.Get "scss/totop.scss" }}
|
||||||
|
{{ if $template }}
|
||||||
|
{{ $totop := $template | resources.ExecuteAsTemplate "css/totop.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $totop.RelPermalink }}" />
|
<link rel="stylesheet" type="text/css" href="{{ $totop.RelPermalink }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{- $links := index $footer "links" }}
|
{{- $links := index $footer "links" }}
|
||||||
{{ $template := resources.Get "scss/footer.scss" }}
|
{{ $template := resources.Get "scss/footer.scss" }}
|
||||||
{{ if $template }}
|
{{ if $template }}
|
||||||
{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
|
{{ $footer := $template | resources.ExecuteAsTemplate "css/footer.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $footer.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $footer.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
|
|
|
@ -2,16 +2,14 @@
|
||||||
{{- $links := index $header "links" }}
|
{{- $links := index $header "links" }}
|
||||||
{{ $template := resources.Get "scss/progressbar.scss" }}
|
{{ $template := resources.Get "scss/progressbar.scss" }}
|
||||||
{{ if $template }}
|
{{ if $template }}
|
||||||
{{ $progressbar := $template | resources.ExecuteAsTemplate "css/progressbar.scss" . | resources.ToCSS (dict
|
{{ $progressbar := $template | resources.ExecuteAsTemplate "css/progressbar.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
"outputStyle" "compressed") | fingerprint }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $progressbar.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $progressbar.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="progress"></div>
|
<div class="progress"></div>
|
||||||
{{ if $header.enabled }}
|
{{ if $header.enabled }}
|
||||||
{{ $template := resources.Get "scss/header.scss" }}
|
{{ $template := resources.Get "scss/header.scss" }}
|
||||||
{{ if $template }}
|
{{ if $template }}
|
||||||
{{ $index := $template | resources.ExecuteAsTemplate "css/header.scss" . | resources.ToCSS (dict "outputStyle"
|
{{ $index := $template | resources.ExecuteAsTemplate "css/header.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
"compressed") | fingerprint }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<header class="header" id="header">
|
<header class="header" id="header">
|
||||||
|
|
|
@ -10,8 +10,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ $template := resources.Get "scss/hero.scss" }}
|
{{ $template := resources.Get "scss/hero.scss" }}
|
||||||
{{ if $template }}
|
{{ if $template }}
|
||||||
{{ $index := $template | resources.ExecuteAsTemplate "css/hero.scss" . | resources.ToCSS (dict "outputStyle"
|
{{ $index := $template | resources.ExecuteAsTemplate "css/hero.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
"compressed") | fingerprint }}
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}} row hero">
|
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}} row hero">
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{ $template := resources.Get "scss/slider.scss" }}
|
{{ $template := resources.Get "scss/slider.scss" }}
|
||||||
{{ if $template }}
|
{{ if $template }}
|
||||||
{{ $index := $template | resources.ExecuteAsTemplate "css/slider.scss" . | resources.ToCSS (dict "outputStyle" "compressed") | fingerprint }}
|
{{ $index := $template | resources.ExecuteAsTemplate "css/slider.scss" . | css.Sass (dict "outputStyle" "compressed") | fingerprint }}
|
||||||
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
<link rel="stylesheet" type="text/css" href="{{ $index.RelPermalink }}">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div id="{{ $id }}" class="slider">
|
<div id="{{ $id }}" class="slider">
|
||||||
|
|
Loading…
Reference in a new issue