From ed919681f324ed070445cfae8f1dd662b09f81b8 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 22 Jul 2022 00:36:28 -0400 Subject: themes/default/layouts: Name spacing and template clean up --- themes/default/layouts/partials/base-head.html | 77 ++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 themes/default/layouts/partials/base-head.html (limited to 'themes/default/layouts/partials/base-head.html') diff --git a/themes/default/layouts/partials/base-head.html b/themes/default/layouts/partials/base-head.html new file mode 100644 index 0000000..f24e7d4 --- /dev/null +++ b/themes/default/layouts/partials/base-head.html @@ -0,0 +1,77 @@ +{{- partial "generate-authors" . -}} +{{- $data := + (dict + "Author" (index .Site.Data ((or .Params.author .Site.Author.default.home) | default "default")) + ) +-}} + + + + +{{ if or .Params.Unlisted .Params.ExpiryDate -}} + +{{- else -}} + +{{- end }} + + +{{ hugo.Generator }} +{{ with .Site.Params.site.refresh -}} + +{{- end }} + + + + + + + + + + + + + + + + + + + + + + +{{- partial "base-search.html" . -}} + + + + + +{{- $index := resources.Get "js/index.js" -}} +{{- $default := resources.Get "css/default.css" -}} +{{- $syntax := resources.Get "css/syntax-highlight-default.css" -}} + +{{- $js := $index | resources.Minify | fingerprint -}} +{{- $css := slice $default $syntax | resources.Concat "css/bundle.css" | resources.Minify | fingerprint -}} + +{{ if .Site.Params.site.production }} + + +{{ else }} + + + +{{ end }} + + +{{- partial "base-manifest.html" . -}} + + +{{- partial "base-csp.html" . -}} + + + -- cgit v1.2.3