From c5078a2adf338703d7b7a3d62e6594fe2831bc5d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 11 May 2026 11:32:35 +0200 Subject: 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 --- layouts/_default/baseof.html | 6 ++++++ layouts/index.html | 35 +++++++++++++---------------------- 2 files changed, 19 insertions(+), 22 deletions(-) (limited to 'layouts') 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 @@ {{ $contribScript := resources.Get "js/contribution-graph.js" | minify }} + + + {{ if .IsHome }} + {{ $heroScript := resources.Get "js/hero-glitch.js" | minify }} + + {{ end }} diff --git a/layouts/index.html b/layouts/index.html index fd3cfa0..a76505a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,23 +1,22 @@ {{ define "main" }}
-
- - {{ if .Params.image }} -
+
+ + +
+ {{- $email := .Site.Params.email -}} + {{- $hash := $email | lower | md5 -}} {{ .Site.Params.author }}
- {{ end }} - - + +

{{ .Site.Params.author }}

+
{{ .Content }} @@ -33,19 +32,10 @@ {{ $contactUrl = "/it/is/here/" }} {{ end }} - - + {{ i18n "articles" }} - - - + {{ i18n "contact" }}
@@ -54,6 +44,7 @@
{{ partial "tag-cloud.html" (dict "page" . "showCount" true "wrapInWidget" false) }}
+
{{ end }} -- cgit v1.2.3