diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..886b4c5 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,51 @@ + + + + + + + + {{- with .Site.Params.themeColor }} + + + + {{- end }} + {{- partial "structured-data.html" . }} + {{- partial "favicons.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 -}} + + {{- block "head" . -}}{{- end }} + {{- range .Site.Params.customCSS }} + + {{- end }} + {{- if templates.Exists "partials/extra-head.html" -}} + {{ partial "extra-head.html" . }} + {{- end }} + + + + {{ block "header" . -}}{{ end -}} + {{ block "main" . -}}{{ end -}} + {{ block "footer" . -}}{{ end }} + + {{ $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 }} + + {{- partial "analytics.html" . }} + {{- if templates.Exists "partials/extra-foot.html" -}} + {{ partial "extra-foot.html" . }} + {{- end }} + + +