diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-15 17:50:16 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-15 17:50:16 +0200 |
| commit | 1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc (patch) | |
| tree | a6460e280f71db16cd2df5c7cd001e7fd4ad758d | |
| parent | af35b69460571b24c20ee32e6fd5e53a8f21bd8c (diff) | |
| download | danixxyz-1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc.tar.gz danixxyz-1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc.zip | |
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 <noreply@anthropic.com>
| -rw-r--r-- | content/en/is/index.md (renamed from content/en/is/_index.md) | 4 | ||||
| -rw-r--r-- | content/it/is/index.md (renamed from content/it/is/_index.md) | 4 | ||||
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/content/en/is/_index.md b/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 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 -}} <img src="{{ $gravatarURL }}" |
