style-bundle.html 605 B

1234567891011
  1. {{/* setup Sass options */}}
  2. {{- $options := partial "helpers/get-sass-options.html" -}}
  3. {{- $options = $options | merge (dict "targetPath" "application.css") -}}
  4. {{/* Compile hugo template `application.template.scss` into `application.scss`. */}}
  5. {{- $template := resources.Get "styles/application.template.scss" -}}
  6. {{- $scss := $template | resources.ExecuteAsTemplate "styles/application.scss" . -}}
  7. {{/* Bundle application.scss */}}
  8. {{- $bundle := $scss | css.Sass $options | fingerprint -}}
  9. <link rel="stylesheet" href="{{ $bundle.RelPermalink }}" integrity="{{ $bundle.Data.Integrity }}" />