]> danix's work - danix.xyz-2.git/commitdiff
Fix gravatar shortcode and about page ref links
authorDanilo M. <redacted>
Wed, 15 Apr 2026 15:50:16 +0000 (17:50 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 15:50:16 +0000 (17:50 +0200)
- 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 <redacted>
content/en/is/index.md [moved from content/en/is/_index.md with 83% similarity]
content/it/is/index.md [moved from content/it/is/_index.md with 83% similarity]
themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html

similarity index 83%
rename from content/en/is/_index.md
rename to content/en/is/index.md
index 2608d839da51179ea2ae98e1da4f681502ed8d22..1fbdd20357c22bf133bad3e586277720f2d96554 100644 (file)
@@ -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").
similarity index 83%
rename from content/it/is/_index.md
rename to content/it/is/index.md
index 2608d839da51179ea2ae98e1da4f681502ed8d22..1fbdd20357c22bf133bad3e586277720f2d96554 100644 (file)
@@ -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").
index 7151ee5994c58709b8683e35188efed8af831811..a463086c55f5ab7dfb5424554cdd9c0872c66612 100644 (file)
@@ -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 -}}
   <img
     src="{{ $gravatarURL }}"