From 231d29bf26820ca058dec57c06345943ca6dbbf2 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 16:38:12 +0200 Subject: Fix shortcode location: move from shortcodes/ to layouts/shortcodes/ Hugo v0.156.0+ requires shortcodes to be in layouts/shortcodes/ directory. Moved all shortcodes (gravatar, image, gallery, contact-form) to correct location. Co-Authored-By: Claude Haiku 4.5 --- .../danix-xyz-hacker/shortcodes/contact-form.html | 114 --------------------- themes/danix-xyz-hacker/shortcodes/gallery.html | 12 --- themes/danix-xyz-hacker/shortcodes/gravatar.html | 17 --- themes/danix-xyz-hacker/shortcodes/image.html | 22 ---- 4 files changed, 165 deletions(-) delete mode 100644 themes/danix-xyz-hacker/shortcodes/contact-form.html delete mode 100644 themes/danix-xyz-hacker/shortcodes/gallery.html delete mode 100644 themes/danix-xyz-hacker/shortcodes/gravatar.html delete mode 100644 themes/danix-xyz-hacker/shortcodes/image.html (limited to 'themes/danix-xyz-hacker/shortcodes') diff --git a/themes/danix-xyz-hacker/shortcodes/contact-form.html b/themes/danix-xyz-hacker/shortcodes/contact-form.html deleted file mode 100644 index 19884aa..0000000 --- a/themes/danix-xyz-hacker/shortcodes/contact-form.html +++ /dev/null @@ -1,114 +0,0 @@ -{{- $contactFormData := dict -}} - -
- -
- - -
- - -
- - -
- - -
- - -
- - -
- - - -
- - diff --git a/themes/danix-xyz-hacker/shortcodes/gallery.html b/themes/danix-xyz-hacker/shortcodes/gallery.html deleted file mode 100644 index b66c327..0000000 --- a/themes/danix-xyz-hacker/shortcodes/gallery.html +++ /dev/null @@ -1,12 +0,0 @@ -{{- $cols := .Get "cols" | default "2" -}} - -
- {{- range $line := strings.Split .Inner "\n" -}} - {{- if strings.Contains $line "![" -}} - {{- $image := strings.TrimSpace $line -}} - {{- if $image -}} - {{ $image | markdownify | safeHTML }} - {{- end -}} - {{- end -}} - {{- end -}} -
diff --git a/themes/danix-xyz-hacker/shortcodes/gravatar.html b/themes/danix-xyz-hacker/shortcodes/gravatar.html deleted file mode 100644 index 7151ee5..0000000 --- a/themes/danix-xyz-hacker/shortcodes/gravatar.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $email := .Get "email" -}} -{{- $size := .Get "size" | default "256" -}} -{{- $alt := .Get "alt" | default "User avatar" -}} -{{- $class := .Get "class" | default "w-32 h-32 rounded-full" -}} - -{{- if $email -}} - {{- $hash := md5 (trim (strings.ToLower $email)) -}} - {{- $gravatarURL := printf "https://www.gravatar.com/avatar/%s?s=%s&d=identicon" $hash $size -}} - {{ $alt }} -{{- else -}} - {{- errorf "gravatar shortcode: 'email' parameter is required" -}} -{{- end -}} diff --git a/themes/danix-xyz-hacker/shortcodes/image.html b/themes/danix-xyz-hacker/shortcodes/image.html deleted file mode 100644 index 07a698d..0000000 --- a/themes/danix-xyz-hacker/shortcodes/image.html +++ /dev/null @@ -1,22 +0,0 @@ -{{- $src := .Get "src" -}} -{{- $alt := .Get "alt" | default "Image" -}} -{{- $caption := .Get "caption" -}} -{{- $class := .Get "class" | default "rounded-lg border border-border/30" -}} - -{{- if $src -}} -
- {{ $alt }} - {{- if $caption -}} -
- {{ $caption }} -
- {{- end -}} -
-{{- else -}} - {{- errorf "image shortcode: 'src' parameter is required" -}} -{{- end -}} -- cgit v1.2.3