From: Danilo M. Date: Wed, 15 Apr 2026 15:50:16 +0000 (+0200) Subject: Fix gravatar shortcode and about page ref links X-Git-Tag: release_22042026-1342~244 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc;p=danix.xyz-2.git 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 --- diff --git a/content/en/is/_index.md b/content/en/is/index.md similarity index 83% rename from content/en/is/_index.md rename to content/en/is/index.md index 2608d83..1fbdd20 100644 --- a/content/en/is/_index.md +++ b/content/en/is/index.md @@ -5,7 +5,7 @@ draft = false date = "2009-06-01T22:04:43+00:00" +++ -{{< gravatar mail="danixland@gmail.com" class="image right circle" size=250 >}} +{{< gravatar email="danixland@gmail.com" class="image right circle" size=250 >}} Welcome to danix.xyz, my name is Danilo but you can call me danix. @@ -15,4 +15,4 @@ I use this website to keep track of all the snippets of code that I tend to forg I deeply dislike sharing readers data with other companies so you can be sure that I don't collect any data from my readers. I've setup hugo not to track my readers and to instruct other sites referenced on my pages to do so as well. -Read more about [my Privacy Policy]({{< ref "legal" >}} "Privacy Policy here at danix.xyz"). +Read more about [my Privacy Policy](../legal "Privacy Policy here at danix.xyz"). diff --git a/content/it/is/_index.md b/content/it/is/index.md similarity index 83% rename from content/it/is/_index.md rename to content/it/is/index.md index 2608d83..1fbdd20 100644 --- a/content/it/is/_index.md +++ b/content/it/is/index.md @@ -5,7 +5,7 @@ draft = false date = "2009-06-01T22:04:43+00:00" +++ -{{< gravatar mail="danixland@gmail.com" class="image right circle" size=250 >}} +{{< gravatar email="danixland@gmail.com" class="image right circle" size=250 >}} Welcome to danix.xyz, my name is Danilo but you can call me danix. @@ -15,4 +15,4 @@ I use this website to keep track of all the snippets of code that I tend to forg I deeply dislike sharing readers data with other companies so you can be sure that I don't collect any data from my readers. I've setup hugo not to track my readers and to instruct other sites referenced on my pages to do so as well. -Read more about [my Privacy Policy]({{< ref "legal" >}} "Privacy Policy here at danix.xyz"). +Read more about [my Privacy Policy](../legal "Privacy Policy here at danix.xyz"). 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 -}}