{{- $scratch := .Scratch.Get "scratch" -}} {{- $CDN := $scratch.Get "CDN" -}} {{- if .PrevInSection -}} {{- end -}} {{- if .NextInSection -}} {{- end -}} {{- with .OutputFormats.Get "RSS" -}} {{- end -}} {{- /* Font Awesome */ -}} {{- with $CDN.fontawesomeFreeCSS -}} {{- . | safeHTML -}} {{- else -}} {{- $res := resources.Get "lib/fontawesome-free/all.min.css" -}} {{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}} {{- partial "plugin/stylesheet.html" $stylesheet -}} {{- end -}} {{- /* Animate.css */ -}} {{- with $CDN.animateCSS -}} {{- . | safeHTML -}} {{- else -}} {{- $res := resources.Get "lib/animate/animate.min.css" -}} {{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}} {{- partial "plugin/stylesheet.html" $stylesheet -}} {{- end -}} {{- /* style.min.css */ -}} {{- $res := resources.Get "css/style.template.scss" -}} {{- $options := dict "targetPath" "css/style.min.css" -}} {{- $options = dict "includePaths" (slice "config/css") | merge $options -}} {{- $options = dict "outputStyle" "compressed" | merge $options -}} {{- $options = dict "enableSourceMap" true | merge $options -}} {{- $res = resources.ExecuteAsTemplate "style.scss" . $res | toCSS $options -}} {{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}} {{- partial "plugin/stylesheet.html" $stylesheet -}}