From 49402c15377563e650cb76d6444fe620560e94a1 Mon Sep 17 00:00:00 2001
From: Mark Nguyen <1138440+canxerian@users.noreply.github.com>
Date: Wed, 17 Jul 2024 17:11:06 +0100
Subject: [PATCH] Copy paper theme's head.html, add plausible script tag
---
layouts/partials/head.html | 109 +++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
create mode 100644 layouts/partials/head.html
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..41a2d42
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,109 @@
+ {{/* Copied and modified version of themes/paper/layouts/partials/head.html */}}
+
+
+
+
+
+
+ {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ site.Title }}
+
+
+
+
+
+ {{ $site_author := or site.Author.name site.Params.name site.Title }}
+
+ {{ if eq .Kind "page" }}
+
+
+ {{ else }}
+
+
+
+ {{ end }}
+
+
+ {{ $main := resources.Get "main.css" }}
+
+ {{ $custom := resources.Get "custom.css" }}
+
+ {{ $css := slice $main $custom | resources.Concat "main.css" | minify }}
+
+
+
+ {{ $dark_icon := "theme.png" }}
+
+ {{ if site.Params.monoDarkIcon }}{{ $dark_icon = "theme.svg" }}{{ end }}
+
+
+
+
+ {{ $avatar_url := $.Scratch.Get "avatar_url" }}
+
+ {{ if $avatar_url }}
+
+ {{ end }}
+
+
+
+ {{ range $.Scratch.Get "social_list" }}
+
+ {{ end }}
+
+
+
+ {{ if and .IsPage (not site.Params.disableHLJS) }}
+
+ {{ end }}
+
+
+ {{ if or .Params.math site.Params.math }}
+
+ {{ partial "math.html" . }}
+
+ {{ end }}
+
+
+
+
+
+
+
+ {{ hugo.Generator }}
+
+
+ {{ if or hugo.IsProduction (eq site.Params.env "production") }}
+
+ {{ template "_internal/google_analytics.html" . }}
+
+ {{ template "_internal/schema.html" . }}
+
+ {{ template "_internal/opengraph.html" . }}
+
+ {{ template "_internal/twitter_cards.html" . }}
+
+ {{ range .AlternativeOutputFormats }}
+
+ {{ end }}
+
+
+ {{ end }}
+
+
+
+