From 5b476f8905f411768e23cb01d577a60e5a5fd725 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:43:22 +0200 Subject: chore: extract theme into git submodule (danix2-hugo-theme) --- .../danix-xyz-hacker/layouts/shortcodes/gravatar.html | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html (limited to 'themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html b/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html deleted file mode 100644 index 3a1ebcc..0000000 --- a/themes/danix-xyz-hacker/layouts/shortcodes/gravatar.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $email := .Get "email" -}} -{{- $size := .Get "size" | default "256" | int -}} -{{- $alt := .Get "alt" | default "User avatar" -}} -{{- $class := .Get "class" | default "w-32 h-32 rounded-full" -}} - -{{- if $email -}} - {{- $hash := md5 (strings.TrimSpace (strings.ToLower $email)) -}} - {{- $gravatarURL := printf "https://www.gravatar.com/avatar/%s?s=%d&d=identicon" $hash $size -}} - {{ $alt }} -{{- else -}} - {{- errorf "gravatar shortcode: 'email' parameter is required" -}} -{{- end -}} -- cgit v1.2.3