From 1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 17:50:16 +0200 Subject: Fix gravatar shortcode and about page ref links - Fix gravatar.html: replace trim() with strings.TrimSpace() - Fix about pages: replace {{< ref "legal" >}} with relative path ../legal - Both English and Italian about pages now build without errors Co-Authored-By: Claude Haiku 4.5 --- themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/danix-xyz-hacker/layouts/shortcodes') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html index 7151ee5..a463086 100644 --- a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html +++ b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html @@ -4,7 +4,7 @@ {{- $class := .Get "class" | default "w-32 h-32 rounded-full" -}} {{- if $email -}} - {{- $hash := md5 (trim (strings.ToLower $email)) -}} + {{- $hash := md5 (strings.TrimSpace (strings.ToLower $email)) -}} {{- $gravatarURL := printf "https://www.gravatar.com/avatar/%s?s=%s&d=identicon" $hash $size -}}