11 lines
605 B
HTML
11 lines
605 B
HTML
{{/* setup Sass options */}}
|
|
{{- $options := partial "helpers/get-sass-options.html" -}}
|
|
{{- $options = $options | merge (dict "targetPath" "application.css") -}}
|
|
|
|
{{/* Compile hugo template `application.template.scss` into `application.scss`. */}}
|
|
{{- $template := resources.Get "styles/application.template.scss" -}}
|
|
{{- $scss := $template | resources.ExecuteAsTemplate "styles/application.scss" . -}}
|
|
|
|
{{/* Bundle application.scss */}}
|
|
{{- $bundle := $scss | css.Sass $options | fingerprint -}}
|
|
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" />
|