{{- if not .Params.gallery -}} {{- if not .Params.featuredImage -}} {{ .Scratch.Set "image" (printf "https://www.gravatar.com/avatar/%s?size=200" (md5 .Site.Params.gravatarEMail)) }} {{- else -}} {{ .Scratch.Set "image" (.Params.featuredImage) }} {{- end -}} {{- else -}} {{ .Scratch.Set "image" (index (.Params.gallery) 0 | relURL | absURL) }} {{- end -}} {{- if ne .Description "" -}} {{ .Scratch.Set "description" (.Description) }} {{- else -}} {{- if eq .Title .Site.Title -}} {{ .Scratch.Set "description" (.Site.Params.description) }} {{- else -}} {{ .Scratch.Set "description" (printf "%s - %s" (.Title) (.Site.Params.description)) }} {{- end -}} {{- end -}} {{- if eq .Site.Title .Title -}} {{ .Scratch.Set "title" (.Site.Params.subtitle) }} {{- else -}} {{ .Scratch.Set "title" (.Title) }} {{- end -}} {{ .Hugo.Generator }} {{ block "title" . }} {{ .Scratch.Get "title" }} | {{ .Site.Title }}{{ end }} {{- if .IsPage }} {{- else -}} {{- end }} {{ if .RSSLink }} {{ end }} {{ $variables := resources.Get "sass/_variables.scss" }} {{ $theme := resources.Get "sass/theme.scss" }} {{ $combined := slice $variables $theme | resources.Concat "sass/combined.scss" | resources.ExecuteAsTemplate "sass/combined.scss" . }} {{ $style := $combined | toCSS | minify | fingerprint }} {{ partial "twitter-card" . }} {{ if isset .Site.Params "css_modules" }} {{ range .Site.Params.css_modules }} {{ end }} {{ end }} {{ partial "topnav" . }} {{ partial "header" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer" . }} {{ template "_internal/google_analytics_async.html" . }} {{ if and (isset .Site.Params "enable_mathjax") (eq .Site.Params.enable_mathjax true) }} {{ partial "mathjax" . }} {{ end }} {{ $js := resources.Get "js/externalDependencies.js" }} {{ $secureJS := $js | resources.Fingerprint "md5" }} {{ $jsTemplate := resources.Get "js/theme.js" }} {{ $secureJS := $jsTemplate | resources.ExecuteAsTemplate "js/theme.js" . | fingerprint "md5" }} {{ if isset .Site.Params "js_modules" }} {{ range .Site.Params.js_modules }} {{ end }} {{ end }} {{ if and (isset .Site.Params "algolia_search") (eq .Site.Params.algolia_search true) }} {{ partial "algolia-search" . }} {{ end }}