{{/* Generate consistent title */}} {{ $title := "" }} {{ if .Params.narrator }} {{ $title = printf "%s: %s" .Params.narrator .Params.subject }} {{ else if .IsHome }} {{ $title = .Title }} {{ else }} {{ $title = printf "%s - %s" .Title .Site.Title }} {{ end }} {{ $title }} {{/* Generate description from summary, description, or default site description */}} {{ $description := "" }} {{ with .Description }} {{ $description = . }} {{ else }} {{ with .Summary }} {{ $description = . | plainify | truncate 160 }} {{ else }} {{ $description = .Site.Params.description }} {{ end }} {{ end }} {{/* Generate keywords from topics */}} {{ with .Params.topics }} {{ end }} {{ with .Params.images | default .Site.Params.images }} {{ end }} {{ with .Site.Params.facebookAppID }} {{ end }} {{ with .Params.images }} {{ end }} {{ if and .IsPage (eq .Type "articles") }} {{ with .Params.topics }} {{ range . }} {{ end }} {{ end }} {{/* Author information using standard meta topics instead of article:author */}} {{ with .Params.narrator }} {{ end }} {{ with .Params.facilitator }} {{ end }} {{ end }} {{ partial "css-variables.html" . }} {{/* Main Styles */}} {{ $styles := resources.Get "scss/main.scss" }} {{ $styles = $styles | resources.ToCSS (dict "targetPath" "css/styles.css" "enableSourceMap" true) }} {{ $styles = $styles | resources.PostCSS }} {{ if hugo.IsProduction }} {{ $styles = $styles | minify | fingerprint | resources.PostProcess }} {{ end }} {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}