{{/* Generate consistent title */}} {{ $title := "" }} {{ if 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 }} {{ $description = .Site.Params.description }} {{ 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 }} {{ $style := resources.Get "css/styles.css" }} {{ if hugo.IsProduction }} {{ $style = $style | minify | fingerprint }} {{ else }} {{ end }} {{ 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 }}