From 99deb4bd1c115b5b11f3632ca57ccc4d41fb3ee9 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 28 Sep 2025 11:34:33 +0800 Subject: remove: umami web analytics integration Stopped tracking visitors because I realized that: 1. It's no necessary for personal blogs to analyze user behaviors, 2. Checking pageviews on a daily basis really messed up my mental health. --- layouts/_partials/head.html | 1 - layouts/_partials/head/umami.html | 11 ----------- layouts/_partials/header/language-switch.html | 1 - layouts/_partials/header/navigation.html | 1 - layouts/_partials/home/home-nav-item.html | 3 +-- layouts/_partials/home/home-nav.html | 3 +-- layouts/_partials/home/latest-posts.html | 3 +-- layouts/_partials/items/post-small.html | 2 +- layouts/_partials/items/post.html | 5 +---- layouts/_partials/posts/action-menu/info-links.html | 4 ++-- layouts/_partials/posts/now-read-this.html | 2 +- layouts/_partials/scripts/action-menu-js.html | 4 ---- layouts/_partials/scripts/aplayer-js.html | 3 --- 13 files changed, 8 insertions(+), 35 deletions(-) delete mode 100644 layouts/_partials/head/umami.html (limited to 'layouts') diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 10cd1c0d..f2e4b8f3 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -4,5 +4,4 @@ {{ hugo.Generator }} {{ partial "head/siteinfo" . }} {{ partial "head/css" . }} - {{ partial "head/umami" . }} diff --git a/layouts/_partials/head/umami.html b/layouts/_partials/head/umami.html deleted file mode 100644 index 881b34c6..00000000 --- a/layouts/_partials/head/umami.html +++ /dev/null @@ -1,11 +0,0 @@ - - diff --git a/layouts/_partials/header/language-switch.html b/layouts/_partials/header/language-switch.html index 51a9c7b7..9f0a9c20 100644 --- a/layouts/_partials/header/language-switch.html +++ b/layouts/_partials/header/language-switch.html @@ -7,7 +7,6 @@ {{- $entry := index $switch $lang -}} {{ .name }} {{ end }} diff --git a/layouts/_partials/home/home-nav-item.html b/layouts/_partials/home/home-nav-item.html index cffe62ba..639e9762 100644 --- a/layouts/_partials/home/home-nav-item.html +++ b/layouts/_partials/home/home-nav-item.html @@ -3,8 +3,7 @@ {{ $text := .text }}
- + {{ if eq "/stats/" $.Page.RelPermalink }} opacity-100 font-bolder{{ end }}"> Cthulu-style monster with an eye.
  • diff --git a/layouts/_partials/home/latest-posts.html b/layouts/_partials/home/latest-posts.html index b6007c5c..cf80ece6 100644 --- a/layouts/_partials/home/latest-posts.html +++ b/layouts/_partials/home/latest-posts.html @@ -10,8 +10,7 @@ {{ $firstPost = false }} {{ end }}
  • - + {{ T "moreLinks.posts" }} β†’ diff --git a/layouts/_partials/items/post-small.html b/layouts/_partials/items/post-small.html index 3113ba2b..28a4a995 100644 --- a/layouts/_partials/items/post-small.html +++ b/layouts/_partials/items/post-small.html @@ -1,7 +1,7 @@ {{ $isWeekly := (eq .Params.categories "η¨»θ‰δΊΊε‘¨εˆŠ") }}
  • - + {{ .Title }}{{ with .Params.subtitle }}:{{. }} {{ end }} diff --git a/layouts/_partials/items/post.html b/layouts/_partials/items/post.html index 8aefb8a7..64606f04 100644 --- a/layouts/_partials/items/post.html +++ b/layouts/_partials/items/post.html @@ -10,10 +10,7 @@

    - + {{ if eq .ctx.Section "library" }} θ―»γ€Š{{ .ctx.Title }}》 {{ else }} diff --git a/layouts/_partials/posts/action-menu/info-links.html b/layouts/_partials/posts/action-menu/info-links.html index f1547d81..4adcf516 100644 --- a/layouts/_partials/posts/action-menu/info-links.html +++ b/layouts/_partials/posts/action-menu/info-links.html @@ -2,14 +2,14 @@
    + title="{{ T "actionMenu.telegramChannel" }}"> {{ T + title="{{ T "actionMenu.sponsor" }}"> {{ T diff --git a/layouts/_partials/posts/now-read-this.html b/layouts/_partials/posts/now-read-this.html index dae3aca0..ab2d79b8 100644 --- a/layouts/_partials/posts/now-read-this.html +++ b/layouts/_partials/posts/now-read-this.html @@ -3,7 +3,7 @@

    {{ T "nowReadThis" }}

    {{ range . }}