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>
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 >}}
+++
-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 >}}
-{{- $contactFormData := dict -}}
-
<form id="contact-form" x-data="contactForm()" @submit.prevent="submitContactForm" class="space-y-6">
<!-- Name Field -->
<div>