From c3c20ab489f0065888d54b5bc51ce58881450110 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 13 May 2026 09:40:13 +0200 Subject: feat: add glitch effect to article list page H1 Add .section-title class with chromatic-aberration glitch mechanics mirroring .hero-name. Extend hero-glitch.js to target both classes independently. Load glitch script on IsHome and IsSection pages. Title styled uppercase, centered, white. Co-Authored-By: Claude Sonnet 4.6 --- layouts/_default/baseof.html | 2 +- layouts/_default/list.html | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 20f428d..cb17c1d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -139,7 +139,7 @@ - {{ if .IsHome }} + {{ if or .IsHome .IsSection }} {{ $heroScript := resources.Get "js/hero-glitch.js" | minify }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 09c0cbb..c99e930 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,8 +1,6 @@ {{ define "main" }}
-

- {{ .Title }} -

+

{{ .Title }}

{{ $pinned := where .Pages "Params.pinned" true }} {{ $unpinned := where .Pages "Params.pinned" false }} -- cgit v1.2.3