{{ partial "head" . }} {{- partialCached "bs-examples-styles" . }} {{ range .Page.Params.extra_css }} {{- $src := .src | default . -}} {{- $type := .type | default "css" -}} {{- $map := .map | default true -}} {{- $stype := .stype | default "compressed" -}} {{- $inline := .inline | default false -}} {{- $style := "" -}} {{- if eq $type "scss" -}} {{- $sass := resources.Get (printf "sass/%s.scss" $src) -}} {{- $options := (dict "targetPath" (printf "assets/css/%s.css" $src) "enableSourceMap" $map "outputStyle" $stype) -}} {{- $style = $sass | resources.ToCSS $options -}} {{- $src = $style.RelPermalink -}} {{- end -}} {{- if $inline -}} {{- with $style }}{{ end -}} {{- else -}} {{- end -}} {{- end }} {{- .Content -}} {{ if ne .Page.Params.include_js false -}} {{ partialCached "bs-examples-scripts.html" . }} {{ range .Page.Params.extra_js }} {{- end }} {{- end }}