From 86315cada2d2d37c93bd41869aedc92db0f36363 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Apr 2026 09:42:46 +0200 Subject: feat: import all remaining shortcodes from previous theme Added 11 additional shortcodes with complete documentation: Text formatting: - strike: strikethrough text - em: highlighted/marked text - dropcap: paragraph with decorative drop cap Container wrappers: - div / div-close: semantic div containers with classes Gallery: - gallery: gallery container - gal-img: gallery images (400px WebP thumbnail with link) Utility: - svg: inline SVG icons from assets/SVGs/ - actions: button-style action links - search: search form with results display - contact: comprehensive contact form All shortcodes now fully documented in CONTENT_GUIDE with usage examples and parameters. Co-Authored-By: Claude Haiku 4.5 --- layouts/shortcodes/actions.html | 7 ++++++ layouts/shortcodes/contact.html | 49 +++++++++++++++++++++++++++++++++++++++ layouts/shortcodes/div-close.html | 2 ++ layouts/shortcodes/div.html | 4 ++++ layouts/shortcodes/dropcap.html | 14 +++++++++++ layouts/shortcodes/em.html | 1 + layouts/shortcodes/gal-img.html | 7 ++++++ layouts/shortcodes/gallery.html | 5 ++++ layouts/shortcodes/search.html | 22 ++++++++++++++++++ layouts/shortcodes/strike.html | 1 + layouts/shortcodes/svg.html | 5 ++++ 11 files changed, 117 insertions(+) create mode 100644 layouts/shortcodes/actions.html create mode 100644 layouts/shortcodes/contact.html create mode 100644 layouts/shortcodes/div-close.html create mode 100644 layouts/shortcodes/div.html create mode 100644 layouts/shortcodes/dropcap.html create mode 100644 layouts/shortcodes/em.html create mode 100644 layouts/shortcodes/gal-img.html create mode 100644 layouts/shortcodes/gallery.html create mode 100644 layouts/shortcodes/search.html create mode 100644 layouts/shortcodes/strike.html create mode 100644 layouts/shortcodes/svg.html (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/actions.html b/layouts/shortcodes/actions.html new file mode 100644 index 0000000..296a211 --- /dev/null +++ b/layouts/shortcodes/actions.html @@ -0,0 +1,7 @@ +{{ $link := .Get "url" }} +{{ $desc := .Get "desc" }} +{{ $outclass := .Get "outclass" }} +{{ $inclass := .Get "inclass" }} + diff --git a/layouts/shortcodes/contact.html b/layouts/shortcodes/contact.html new file mode 100644 index 0000000..06be1f5 --- /dev/null +++ b/layouts/shortcodes/contact.html @@ -0,0 +1,49 @@ +{{- $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/div-close.html b/layouts/shortcodes/div-close.html new file mode 100644 index 0000000..ea7e47c --- /dev/null +++ b/layouts/shortcodes/div-close.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/shortcodes/div.html b/layouts/shortcodes/div.html new file mode 100644 index 0000000..0c0b755 --- /dev/null +++ b/layouts/shortcodes/div.html @@ -0,0 +1,4 @@ +{{ if .Get "class" }} +
+{{ end }} + diff --git a/layouts/shortcodes/dropcap.html b/layouts/shortcodes/dropcap.html new file mode 100644 index 0000000..80cbefe --- /dev/null +++ b/layouts/shortcodes/dropcap.html @@ -0,0 +1,14 @@ +{{/* + * The dropcap shortcode: + * + * Usage: + * + * {{< dropcap class="some class" >}} + * your paragraph that will have a drop cap here + * {{< /dropcap >}} + * + */}} + +

+ {{ .InnerDeindent }} +

diff --git a/layouts/shortcodes/em.html b/layouts/shortcodes/em.html new file mode 100644 index 0000000..11f399a --- /dev/null +++ b/layouts/shortcodes/em.html @@ -0,0 +1 @@ +{{ .Inner | markdownify }} diff --git a/layouts/shortcodes/gal-img.html b/layouts/shortcodes/gal-img.html new file mode 100644 index 0000000..0693319 --- /dev/null +++ b/layouts/shortcodes/gal-img.html @@ -0,0 +1,7 @@ +{{- $src := .Get "src" -}} +{{- $source := resources.Get $src -}} +{{- $alt := .Get "alt" -}} +{{- $icon := $source.Resize "400x webp" -}} + + {{ $alt }} + diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html new file mode 100644 index 0000000..8a30fc5 --- /dev/null +++ b/layouts/shortcodes/gallery.html @@ -0,0 +1,5 @@ + diff --git a/layouts/shortcodes/search.html b/layouts/shortcodes/search.html new file mode 100644 index 0000000..784c598 --- /dev/null +++ b/layouts/shortcodes/search.html @@ -0,0 +1,22 @@ +

{{ i18n "js_required" }}

+ + + + +
+ + diff --git a/layouts/shortcodes/strike.html b/layouts/shortcodes/strike.html new file mode 100644 index 0000000..415036a --- /dev/null +++ b/layouts/shortcodes/strike.html @@ -0,0 +1 @@ +{{ .Inner | markdownify }} diff --git a/layouts/shortcodes/svg.html b/layouts/shortcodes/svg.html new file mode 100644 index 0000000..d042bb0 --- /dev/null +++ b/layouts/shortcodes/svg.html @@ -0,0 +1,5 @@ + +{{- $fname := print "SVGs/" ( .Get "name" ) ".svg" -}} +{{ $icon := resources.Get $fname }} +{{ $icon.Content | safeHTML }} + -- cgit v1.2.3