From f74bf2e917c8205358c9cd42ca1c70714f396c2b Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Fri, 6 Jan 2023 21:52:55 +0100 Subject: [PATCH] move head.html to header.html and header.html to head.html --- layouts/partials/head.html | 105 ++++++++++++++++++++++++++++++----- layouts/partials/header.html | 105 +++++------------------------------ 2 files changed, 105 insertions(+), 105 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 30476c8..a80641e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,14 +1,93 @@ -
- - -
+ {{- end -}} + {{- range .Site.Params.customJS }} + {{- if or (hasPrefix . "http://") (hasPrefix . "https://") }} + + {{- else if (hasPrefix . " + {{- end }} + {{- end }} + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a80641e..30476c8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,93 +1,14 @@ - - - - {{- $title := ( .Title ) -}} - {{- $siteTitle := ( .Site.Title ) -}} - {{- if .IsHome -}} - {{ $siteTitle }} | Home - {{- else -}} - {{ $title }} - {{ $siteTitle }} - {{- end -}} - - {{- if isset .Site.Params "favicon" -}} - - {{- end -}} - - - - - {{ with .OutputFormats.Get "rss" -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} - {{ end -}} - - - {{ $fontstyle := resources.Get "css/fonts.css" | fingerprint }} - - - {{ $style := resources.Get "css/main.css" | fingerprint }} - - - {{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "dark") (eq .Site.Params.mode "toggle") -}} - {{ $darkstyle := resources.Get "css/dark.css" | fingerprint }} - - {{ end }} - - - {{ with .Site.Params.mathjax }} - - - - - {{ end }} - - - {{ with .Site.Params.katex }} - - - - - - {{ end }} - - - {{- if isset .Site.Params "customcss" }} - {{ range .Site.Params.customCSS }} - {{ $customstyle := resources.Get . | fingerprint }} - +
+ + +