]> danix's work - danix2-hugo-theme.git/commitdiff
fix: remove contact and search shortcodes
authorDanilo M. <redacted>
Sun, 5 Apr 2026 07:43:43 +0000 (09:43 +0200)
committerDanilo M. <redacted>
Sun, 5 Apr 2026 07:43:43 +0000 (09:43 +0200)
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 <redacted>
CONTENT_GUIDE.md
layouts/shortcodes/contact.html [deleted file]
layouts/shortcodes/search.html [deleted file]

index 3f163406f438eef83b538445b375da5a525df458..1c74a00ffaca4565689e5c9f1bd71deb860a2d42 100644 (file)
@@ -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 (file)
index 06be1f5..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-{{- $sig := resources.Get "/uploads/2018/05/new-signature.png" -}}
-<section id="contact">
-  <div class="inner">
-    <section>
-
-      <p class="error message js-hidden">Javascript is required for this form to work</p>
-      <p class="contact-submitted status message hidden">Your message has been sent correctly. I'll get back at you as soon as possible</p>
-      <p class="contact-error error message hidden">There's been a problem with your message, I'll dispatch the wizard to investigate the issue.</p>
-
-      <form class="contact-form hidden" data-protect="/php/contact.php" action="#" method="post" accept-charset="UTF-8">
-        <div class="fields">
-          <div class="field half">
-            <label for="edit-name">Name:</label>
-            <input type="text" id="edit-name" name="name" placeholder="Insert your name" required autofocus>
-          </div>
-          <div class="field half">
-            <label for="edit-mail">Email:</label>
-            <input type="email" id="edit-mail" name="email" placeholder="your email address" required>
-          </div>
-          <div class="field">
-            <label for="edit-subject">What are we talking about?</label>
-            <input type="text" id="edit-subject" name="subject" placeholder="add a subject" required>
-          </div>
-          <div class="field">
-            <label for="edit-message">Tell me everything :)</label>
-            <textarea id="edit-message" name="message" rows="5" placeholder="Insert your message here" required></textarea>
-          </div>
-        </div>
-        <input type="text" id="edit-url" class="hidden" name="url" placeholder="your website">
-        <ul class="actions">
-          <li><input type="submit" name="submit" class="form-submit primary" disabled value="Send Message" /></li>
-          <li><input type="reset" name="reset" class="form-reset" disabled value="clear" /></li>
-        </ul>
-
-      </form>
-    </section>
-
-    <section class="split">
-      <section>
-        <div class="contact-method">
-          <span class="icon solid alt fa-envelope"></span>
-          <h3>Reach out to me</h3>
-          <p>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!</p>
-          <img class="signature image right" src="{{ $sig.RelPermalink }}" alt="signed by danix">
-        </div>
-      </section>
-    </section>
-  </div>
-</section>
diff --git a/layouts/shortcodes/search.html b/layouts/shortcodes/search.html
deleted file mode 100644 (file)
index 784c598..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<p class="error message js-hidden">{{ i18n "js_required" }}</p>
-<p class="search-loading status message hidden">{{ i18n "search_loading" }}</p>
-
-<div class="search-input hidden">
-  <form id="search-form" class="search-form" action="#" method="post" accept-charset="UTF-8" role="search">
-    <label for="query" class="visually-hidden">{{ i18n "search_title" }}</label>
-    <input type="search" id="query" name="query" class="search-text" placeholder="{{ i18n "search_placeholder" }}" maxlength="128">
-    <button type="submit" name="submit" class="form-submit" >{{ i18n "search_title" }}</button>
-  </form>
-</div>
-
-<div class="search-results"></div>
-
-<template>
-  <article class="search-result list-view">
-    <header>
-      <h2 class="title title-submitted"><a href="#">Title here</a></h2>
-      <div class="submitted"><time class="created-date">Date here</time></div>
-    </header>
-    <div class="content">Summary here</div>
-  </article>
-</template>