summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-11 11:32:35 +0200
committerDanilo M. <danix@danix.xyz>2026-05-11 11:32:51 +0200
commitc5078a2adf338703d7b7a3d62e6594fe2831bc5d (patch)
treeb5e7e4e51c2fdca0d298fa9323a0bae9135c7956 /layouts/_default
parent563e87afd4ce4ef48acef4f29927579ca69d01cb (diff)
downloaddanixxyz-theme-c5078a2adf338703d7b7a3d62e6594fe2831bc5d.tar.gz
danixxyz-theme-c5078a2adf338703d7b7a3d62e6594fe2831bc5d.zip
feat: hero name glitch effect on homepage
Chromatic aberration glitch on h1.hero-name. Gravatar moved from markdown shortcode to template. JS fires randomly every 4-11s. Respects prefers-reduced-motion. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 3736a9f..20f428d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -137,5 +137,11 @@
<!-- Contribution graph widget -->
{{ $contribScript := resources.Get "js/contribution-graph.js" | minify }}
<script src="{{ $contribScript.RelPermalink }}"></script>
+
+ <!-- Hero glitch effect (homepage only) -->
+ {{ if .IsHome }}
+ {{ $heroScript := resources.Get "js/hero-glitch.js" | minify }}
+ <script src="{{ $heroScript.RelPermalink }}"></script>
+ {{ end }}
</body>
</html>