summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-05 09:43:43 +0200
committerDanilo M. <danix@danix.xyz>2026-04-05 09:43:43 +0200
commit123b15e442a5a2bd2d73fb9d32cdded69a28f109 (patch)
tree8a050a7cd9a928998dbbbf85205bdec70211a05f
parent86315cada2d2d37c93bd41869aedc92db0f36363 (diff)
downloaddanixxyz-theme-123b15e442a5a2bd2d73fb9d32cdded69a28f109.tar.gz
danixxyz-theme-123b15e442a5a2bd2d73fb9d32cdded69a28f109.zip
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 <noreply@anthropic.com>
-rw-r--r--CONTENT_GUIDE.md22
-rw-r--r--layouts/shortcodes/contact.html49
-rw-r--r--layouts/shortcodes/search.html22
3 files changed, 0 insertions, 93 deletions
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" -}}
-<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
index 784c598..0000000
--- a/layouts/shortcodes/search.html
+++ /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>