{{/* 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 }}{{ if .Params.narrator }} - {{ .Site.Title }}{{ end }} {{/* 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.ogImage | default .Site.Params.openGraphImage }} {{ end }} {{ with .Params.ogImage | default .Site.Params.openGraphImage }} {{ 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.html" . }} {{ partial "header.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }} {{ $js := resources.Match "js/*.js" | resources.Concat "js/bundle.js" }} {{ if hugo.IsProduction }} {{ $js = $js | minify | fingerprint }} {{ else }} {{ end }}