summaryrefslogtreecommitdiff
path: root/layouts/_partials/items
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-28 11:34:33 +0800
committerEltrac <hi@guhub.cn>2025-09-28 11:34:33 +0800
commit99deb4bd1c115b5b11f3632ca57ccc4d41fb3ee9 (patch)
treee2f80de07073e43f5a86da381fb1af2470455854 /layouts/_partials/items
parent13314f3fc50484c3c6c628627fe49053a8284599 (diff)
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.
Diffstat (limited to 'layouts/_partials/items')
-rw-r--r--layouts/_partials/items/post-small.html2
-rw-r--r--layouts/_partials/items/post.html5
2 files changed, 2 insertions, 5 deletions
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 "稻草人周刊") }}
<li class="flex justify-between text-size-lg
{{ if $isWeekly }} weekly animate-duration-500 transition-opacity{{ end }}">
- <a href="{{ .RelPermalink }}" data-umami-event="🗃️ Click Post Link from Category Page">
+ <a href="{{ .RelPermalink }}">
{{ .Title }}{{ with .Params.subtitle }}:<span class="text-secondary">{{. }}</span>
{{ end }}
</a>
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 @@
</p>
<h2 class="xerox"
{{ if $showSummary }} style="margin-bottom: 0"{{ end }}>
- <a
- href="{{ .ctx.Permalink }}"
- data-umami-event="🏠 Click post link from index"
- >
+ <a href="{{ .ctx.Permalink }}">
{{ if eq .ctx.Section "library" }}
读《{{ .ctx.Title }}》
{{ else }}