{{- partial "analytics.html" . -}} {{- partial "site-meta.html" -}} {{ $author := (.Params.author | default .Site.Params.author.name) -}} {{ with .Site.Params.themeColor -}} {{- end -}} {{- with .Page.Params.description | default .Site.Params.description -}}{{- end -}} {{- partial "structured-data.html" . -}} {{.Title}} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Title | safeHTML }} {{ end -}} {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify | fingerprint -}} {{- range .Params.custom_css -}}{{- end -}} {{- block "head" . -}}{{- end -}} {{- if templates.Exists "partials/extra-head.html" -}}{{- partial "extra-head.html" . -}}{{- end -}} {{- block "header" . -}}{{ end -}} {{- block "main" . -}}{{ end -}} {{- block "footer" . -}}{{ end }} {{- partial "scroll-to-top.html" . }} {{- $main := resources.Get "js/main.js" -}} {{- if .Site.Params.code_copy_button | default true -}} {{ $codeCopy := resources.Get "js/code-copy.js" -}} {{ $script := slice $main $codeCopy | resources.Concat "js/bundle.js" | minify | fingerprint -}} {{- else -}} {{ $script := $main | minify | fingerprint -}} {{- end -}} {{- if and (not (eq .Site.Params.shareSocial nil)) (.Site.Params.shareSocial) -}} {{ $linkshare := resources.Get "js/link-share.js" | minify | fingerprint -}} {{- end -}} {{- range .Params.custom_js -}}{{- end }} {{- partial "mathjax.html" . -}} {{- if templates.Exists "partials/extra-foot.html" -}}{{- partial "extra-foot.html" . -}}{{- end }}