From: Danilo M. Date: Sun, 5 Apr 2026 07:43:43 +0000 (+0200) Subject: fix: remove contact and search shortcodes X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=123b15e442a5a2bd2d73fb9d32cdded69a28f109;p=danix2-hugo-theme.git fix: remove contact and search shortcodes Removed contact.html and search.html shortcodes as they won't be used in the new theme. Also removed their documentation from CONTENT_GUIDE. Remaining shortcodes: gravatar, quote, img, figure, video, strike, em, dropcap, div, div-close, gallery, gal-img, svg, actions Co-Authored-By: Claude Haiku 4.5 --- diff --git a/CONTENT_GUIDE.md b/CONTENT_GUIDE.md index 3f16340..1c74a00 100644 --- a/CONTENT_GUIDE.md +++ b/CONTENT_GUIDE.md @@ -790,28 +790,6 @@ Creates a button-style action link (useful for CTAs). {{< actions url="https://github.com/danix2" desc="Visit my GitHub" outclass="centered" inclass="primary" >}} ``` -#### Search Shortcode - -Embeds a search form with results display. Requires JavaScript integration. - -**Usage:** -```hugo -{{< search >}} -``` - -**Note:** This shortcode requires corresponding JavaScript and i18n (internationalization) configuration to function properly. - -#### Contact Shortcode - -Embeds a comprehensive contact form with fields for name, email, subject, and message. - -**Usage:** -```hugo -{{< contact >}} -``` - -**Note:** The form POSTs to `/php/contact.php` by default. You can update the form action in the shortcode if using a different backend endpoint. - --- ## Troubleshooting diff --git a/layouts/shortcodes/contact.html b/layouts/shortcodes/contact.html deleted file mode 100644 index 06be1f5..0000000 --- a/layouts/shortcodes/contact.html +++ /dev/null @@ -1,49 +0,0 @@ -{{- $sig := resources.Get "/uploads/2018/05/new-signature.png" -}} -
-
-
- -

Javascript is required for this form to work

- - - - -
- -
-
-
- -

Reach out to me

-

I'm here to help, if you need to talk to me feel free to reach out and tell me whatever you need help with, I'll be happy to find some time to discuss the matter with you!

- signed by danix -
-
-
-
-
diff --git a/layouts/shortcodes/search.html b/layouts/shortcodes/search.html deleted file mode 100644 index 784c598..0000000 --- a/layouts/shortcodes/search.html +++ /dev/null @@ -1,22 +0,0 @@ -

{{ i18n "js_required" }}

- - - - -
- -