From e9883e5732c243ced33020e7f2e1c12388cd6686 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 17:43:32 +0200 Subject: Extract contact form JavaScript to separate file and remove shortcode from contact pages - Move contact form Alpine.js logic to assets/js/contact-form.js - Simplify contact-form.html shortcode by removing inline script - Load contact-form.js in baseof.html after Alpine.js - Temporarily remove {{< contact_form >}} shortcode from contact pages (shortcode parsing issue to investigate later) - Contact pages now display with placeholder text Co-Authored-By: Claude Haiku 4.5 --- .../danix-xyz-hacker/layouts/_default/baseof.html | 4 ++ .../layouts/shortcodes/contact-form.html | 47 ---------------------- 2 files changed, 4 insertions(+), 47 deletions(-) (limited to 'themes/danix-xyz-hacker/layouts') diff --git a/themes/danix-xyz-hacker/layouts/_default/baseof.html b/themes/danix-xyz-hacker/layouts/_default/baseof.html index face55d..80137c1 100644 --- a/themes/danix-xyz-hacker/layouts/_default/baseof.html +++ b/themes/danix-xyz-hacker/layouts/_default/baseof.html @@ -71,5 +71,9 @@ {{ $langScript := resources.Get "js/language-switcher.js" | minify }} + + + {{ $contactScript := resources.Get "js/contact-form.js" | minify }} + diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html b/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html index 19884aa..6dbdb2d 100644 --- a/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html +++ b/themes/danix-xyz-hacker/layouts/shortcodes/contact-form.html @@ -65,50 +65,3 @@ - -- cgit v1.2.3