From: Danilo M. Date: Wed, 15 Apr 2026 15:46:10 +0000 (+0200) Subject: Fix contact form shortcode: rename from contact-form.html to contact.html X-Git-Tag: release_22042026-1342~246 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=5108b5bf631c172efc00badaea512ded874ebb14;p=danix.xyz-2.git Fix contact form shortcode: rename from contact-form.html to contact.html Problem: Hugo v0.160 doesn't find shortcode as 'contact_form' when filename is contact-form.html Solution: Rename to contact.html so shortcode is {{< contact >}} - Rename shortcodes/contact-form.html → contact.html - Update contact pages to use {{< contact >}} shortcode - Remove unused dict initialization line from contact shortcode - Contact form now works on both English and Italian contact pages Co-Authored-By: Claude Haiku 4.5 --- diff --git a/content/en/is/here/index.md b/content/en/is/here/index.md index ff03d1e..ac68cab 100644 --- a/content/en/is/here/index.md +++ b/content/en/is/here/index.md @@ -3,4 +3,6 @@ title = "Talk to me" date = "2023-02-28T18:12:43+01:00" +++ -I'd love to hear from you. Contact form coming soon! +I'd love to hear from you. Please fill out the form below. + +{{< contact >}} diff --git a/content/it/is/here/index.md b/content/it/is/here/index.md index e2bb0f7..802cec4 100644 --- a/content/it/is/here/index.md +++ b/content/it/is/here/index.md @@ -1,6 +1,8 @@ +++ -title = "Talk to me" +title = "Parlami" date = "2023-02-28T18:12:43+01:00" +++ -Mi piacerebbe sentire da te. Modulo di contatto in arrivo presto! +Mi piacerebbe sentire da te. Per favore, compila il modulo sottostante. + +{{< contact >}} diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html b/themes/danix-xyz-hacker/layouts/shortcodes/contact.html similarity index 98% rename from themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html rename to themes/danix-xyz-hacker/layouts/shortcodes/contact.html index 6dbdb2d..6c5748f 100644 --- a/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html +++ b/themes/danix-xyz-hacker/layouts/shortcodes/contact.html @@ -1,5 +1,3 @@ -{{- $contactFormData := dict -}} -