summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/shortcodes
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 17:50:16 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 17:50:16 +0200
commit1ac2e084c2a2f2fb9d04a2bfabd1e308799ee9fc (patch)
treea6460e280f71db16cd2df5c7cd001e7fd4ad758d /themes/danix-xyz-hacker/layouts/shortcodes
parentaf35b69460571b24c20ee32e6fd5e53a8f21bd8c (diff)
downloaddanixxyz-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>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/shortcodes')
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html2
1 files changed, 1 insertions, 1 deletions
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 }}"