summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-15 17:46:10 +0200
committerDanilo M. <danix@danix.xyz>2026-04-15 17:46:10 +0200
commit5108b5bf631c172efc00badaea512ded874ebb14 (patch)
treecdadea8d738f3498c3dbb824e80ebf1c6947efb6
parente9883e5732c243ced33020e7f2e1c12388cd6686 (diff)
downloaddanixxyz-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>
-rw-r--r--content/en/is/here/index.md4
-rw-r--r--content/it/is/here/index.md6
-rw-r--r--themes/danix-xyz-hacker/layouts/shortcodes/contact.html (renamed from themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html)2
3 files changed, 7 insertions, 5 deletions
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
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>