diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..7b8a54d --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,96 @@ + + {{.Site.Params.author}}{{ with .Title }} | {{ . }}{{ end }} + + + + {{- hugo.Generator -}} + + + {{- if .Site.Params.googleSiteVerify }} + + {{- end -}} + + + {{ $style := resources.Get "css/style.css" | resources.Minify | resources.Fingerprint }} + + {{ $markupHighlightStyle := resources.Get "css/markupHighlight.css" | resources.Minify | resources.Fingerprint }} + + {{ range .Site.Params.customCss }} + {{ $minstyles := resources.Get . }} + {{ $styles := $minstyles | resources.Minify | resources.Fingerprint }} + + {{ end }} + + + + + + + + + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + + {{ $anatoleHeader := resources.Get "js/anatole-header.js" }} + {{ $secureHeaderJS := $anatoleHeader | resources.Minify | resources.Fingerprint }} + + + + {{ if not .Site.Params.disableThemeSwitcher }} + {{ $anatoleThemeSwitcher := resources.Get "js/anatole-theme-switcher.js" }} + {{ $secureThemeSwitcherJS := $anatoleThemeSwitcher | resources.Minify | resources.Fingerprint }} + + {{ end }} + + {{- $js := "" -}} + {{- range .Site.Params.customJs -}} + {{- if or (in . "http://") (in . "https://") -}} + + {{- else -}} + {{- $customJS := resources.Get . -}} + {{- if $customJS -}} + {{- if eq $js "" -}} + {{- $js = $customJS -}} + {{- else -}} + {{- $js = slice $js $customJS | resources.Concat "js/custom.js" -}} + {{- end -}} + {{- end -}} + {{- end -}} + {{- end -}} + + {{- if ne $js "" -}} + {{- $secureJS := $js | resources.Minify | resources.Fingerprint -}} + + {{- end -}} + + + {{ template "_internal/twitter_cards.html" . }} + diff --git a/public/404.html b/public/404.html index 04a7f57..0c69304 100644 --- a/public/404.html +++ b/public/404.html @@ -26,8 +26,7 @@ - - + diff --git a/public/about/index.html b/public/about/index.html index f183ee4..866b5e7 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/archives/index.html b/public/archives/index.html index 25ee793..20bc824 100644 --- a/public/archives/index.html +++ b/public/archives/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/categories/blogging/index.html b/public/categories/blogging/index.html index cb521ac..6c74e4a 100644 --- a/public/categories/blogging/index.html +++ b/public/categories/blogging/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/categories/index.html b/public/categories/index.html index 6b13b04..9f8d5f8 100644 --- a/public/categories/index.html +++ b/public/categories/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/contact/index.html b/public/contact/index.html index 17d976b..a7cd4c8 100644 --- a/public/contact/index.html +++ b/public/contact/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/index.html b/public/index.html index 2cd6782..aba825f 100644 --- a/public/index.html +++ b/public/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/post/2021/02/back-on-the-fediverse/index.html b/public/post/2021/02/back-on-the-fediverse/index.html index ac84035..2fb598a 100644 --- a/public/post/2021/02/back-on-the-fediverse/index.html +++ b/public/post/2021/02/back-on-the-fediverse/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/post/2021/02/online-with-hugo/index.html b/public/post/2021/02/online-with-hugo/index.html index eb718e4..875311f 100644 --- a/public/post/2021/02/online-with-hugo/index.html +++ b/public/post/2021/02/online-with-hugo/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/post/index.html b/public/post/index.html index ff36f86..078012d 100644 --- a/public/post/index.html +++ b/public/post/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/tags/index.html b/public/tags/index.html index 4bcded5..813af48 100644 --- a/public/tags/index.html +++ b/public/tags/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/tags/index/index.html b/public/tags/index/index.html index 88048fd..42af752 100644 --- a/public/tags/index/index.html +++ b/public/tags/index/index.html @@ -26,8 +26,7 @@ - - + diff --git a/public/tags/newbeginnings/index.html b/public/tags/newbeginnings/index.html index b6ed15c..feebacb 100644 --- a/public/tags/newbeginnings/index.html +++ b/public/tags/newbeginnings/index.html @@ -26,8 +26,7 @@ - - +