summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-13 09:51:50 +0200
committerDanilo M. <danix@danix.xyz>2026-05-13 09:51:50 +0200
commit47d7da6227e8354c1f48289e14970c531e7ebc56 (patch)
tree95023ccdbdcef4a850576f0d0a9b3e157c2075df /layouts
parent90d033f00eebfbe02a2a8913ed8f2cdc3d06be37 (diff)
downloaddanixxyz-theme-47d7da6227e8354c1f48289e14970c531e7ebc56.tar.gz
danixxyz-theme-47d7da6227e8354c1f48289e14970c531e7ebc56.zip
feat: add glitch effect to taxonomy list and term page H1s
Extend section-title glitch to taxonomy/list.html and taxonomy/term.html. Load glitch script on taxonomy and term page kinds in baseof.html. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html2
-rw-r--r--layouts/taxonomy/list.html4
-rw-r--r--layouts/taxonomy/term.html4
3 files changed, 3 insertions, 7 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index cb17c1d..98ff8f8 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -139,7 +139,7 @@
<script src="{{ $contribScript.RelPermalink }}"></script>
<!-- Hero glitch effect (homepage only) -->
- {{ if or .IsHome .IsSection }}
+ {{ if or .IsHome .IsSection (eq .Kind "taxonomy") (eq .Kind "term") }}
{{ $heroScript := resources.Get "js/hero-glitch.js" | minify }}
<script src="{{ $heroScript.RelPermalink }}"></script>
{{ end }}
diff --git a/layouts/taxonomy/list.html b/layouts/taxonomy/list.html
index c3a4317..5971f7b 100644
--- a/layouts/taxonomy/list.html
+++ b/layouts/taxonomy/list.html
@@ -1,9 +1,7 @@
{{ define "main" }}
<div class="mx-auto px-4 py-12 max-w-4xl">
<!-- Page title with taxonomy name -->
- <h1 class="text-4xl md:text-5xl font-bold text-accent mb-12">
- {{ i18n .Data.Plural }}
- </h1>
+ <h1 class="section-title" data-text="{{ i18n .Data.Plural }}">{{ i18n .Data.Plural }}</h1>
<!-- Articles list -->
<div class="space-y-6 max-w-3xl">
diff --git a/layouts/taxonomy/term.html b/layouts/taxonomy/term.html
index 1b953bc..b1d4889 100644
--- a/layouts/taxonomy/term.html
+++ b/layouts/taxonomy/term.html
@@ -1,9 +1,7 @@
{{ define "main" }}
<div class="mx-auto px-4 py-12 max-w-4xl">
<!-- Page title with taxonomy type -->
- <h1 class="text-4xl md:text-5xl font-bold text-accent mb-2">
- {{ i18n .Data.Singular }}
- </h1>
+ <h1 class="section-title" data-text="{{ i18n .Data.Singular }}">{{ i18n .Data.Singular }}</h1>
<!-- Current term heading -->
<p class="text-lg text-text-dim mb-12">