From 52a727af422ee50413e9c6725cbab4380c4e8ad2 Mon Sep 17 00:00:00 2001 From: Marcus Wilson Date: Tue, 15 Oct 2024 00:13:17 +0000 Subject: [PATCH] Commented out hit counter for now --- hugo.yml | 2 ++ layouts/_default/single.html | 21 +++++++++++++++++++++ layouts/partials/analytics.html | 11 +++++++++++ 3 files changed, 34 insertions(+) create mode 100644 layouts/_default/single.html create mode 100644 layouts/partials/analytics.html diff --git a/hugo.yml b/hugo.yml index 5bc7b46..7f86fee 100644 --- a/hugo.yml +++ b/hugo.yml @@ -22,6 +22,8 @@ params: url: "https://mnw.sdf.org" favicon: favicon.ico lazy_load_images: true + # hit counter + # goatcounter: "mnw" schema: blog: "@context": "http://schema.org" diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..c64780a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,21 @@ +{{ define "main" -}} +
+ {{ partial "post/info.html" . }} + {{ .Content }} + {{ if (.Site.Params.listmonk) }} + {{ partial "post/listmonk_email_newsletters.html" . }} + {{ end }} + {{ partial "post/navigation.html" . }} + {{ if or (.Site.Params.remark42) (.Site.Config.Services.Disqus.Shortname) }} + {{ partial "post/comments.html" . }} + {{ end }} + {{- if .Site.Params.goatcounter }} + {{ partial "analytics.html" . -}} + {{- end}} +
+{{- end }} +{{ define "sidebar" }} + {{ if and (not .Params.hideToc) (not .Site.Params.hideToc) }} + {{ partial "table_of_contents.html" . }} + {{ end }} +{{ end }} diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..5e37d9f --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1,11 @@ +
There's still time for
of you to escape. <3
+ + +