]> danix's work - danix.xyz-2.git/commitdiff
Fix contact form shortcode: rename from contact-form.html to contact.html
authorDanilo M. <redacted>
Wed, 15 Apr 2026 15:46:10 +0000 (17:46 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 15:46:10 +0000 (17:46 +0200)
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 <redacted>
content/en/is/here/index.md
content/it/is/here/index.md
themes/danix-xyz-hacker/layouts/shortcodes/contact.html [moved from themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html with 98% similarity]

index ff03d1ef483ce19066e47942de532a1be3140c6e..ac68cabb71fd3097ebd6f0d9864f4557fb1f6737 100644 (file)
@@ -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 >}}
index e2bb0f788f96f2e1ce48139e09606adc5a4329c5..802cec4538aa2f0aced7c844ba6c1cfd953c46c7 100644 (file)
@@ -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 >}}
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 6dbdb2d8053b1d65b925296ec08e91c8a39f4fda..6c5748fc656a6cebbd18e81efce2f0afe39e0ecf 100644 (file)
@@ -1,5 +1,3 @@
-{{- $contactFormData := dict -}}
-
 <form id="contact-form" x-data="contactForm()" @submit.prevent="submitContactForm" class="space-y-6">
   <!-- Name Field -->
   <div>