{{/* Format: "[page title] | [site title]" */}} {{ block "title" . }}{{ with .Params.Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }} {{ $sassOptions := (dict "targetPath" "app.css" "outputStyle" "compressed" "enableSourceMap" true) }} {{ $appStyle := resources.Get "sass/app.scss" | resources.ToCSS $sassOptions }} {{/* We fingerprint in production for cache busting purposes */}} {{ if eq (getenv "HUGO_ENV") "production" }} {{ $appStyle = $appStyle | fingerprint }} {{ end }} {{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }}
{{ $jsOptions := (dict "targetPath" "app.js" "minify" true) }} {{ $appJs := resources.Get "js/app.js" | js.Build $jsOptions }} {{/* We fingerprint in production for cache busting purposes */}} {{ if eq (getenv "HUGO_ENV") "production" }} {{ $appJs = $appJs | fingerprint }} {{ end }}