diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-15 17:46:10 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-15 17:46:10 +0200 |
| commit | 5108b5bf631c172efc00badaea512ded874ebb14 (patch) | |
| tree | cdadea8d738f3498c3dbb824e80ebf1c6947efb6 /themes | |
| parent | e9883e5732c243ced33020e7f2e1c12388cd6686 (diff) | |
| download | danixxyz-5108b5bf631c172efc00badaea512ded874ebb14.tar.gz danixxyz-5108b5bf631c172efc00badaea512ded874ebb14.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'themes')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/shortcodes/contact.html (renamed from themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html) | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html b/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 -}} - <form id="contact-form" x-data="contactForm()" @submit.prevent="submitContactForm" class="space-y-6"> <!-- Name Field --> <div> |
