From 71b7e2558045896eaf5eb84a10006f10a5a61d8c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 15 Apr 2026 22:30:46 +0200 Subject: Fix article shortcode issues and add actions shortcode - Fix gify-back-to-bash-scripting article: replace figure shortcode with image - Add actions shortcode for download/action buttons with icon and styling - Actions shortcode accepts: url (required), desc, outclass, inclass parameters - Rendered as styled link with feather download icon Co-Authored-By: Claude Haiku 4.5 --- .../danix-xyz-hacker/layouts/shortcodes/actions.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/shortcodes/actions.html (limited to 'themes/danix-xyz-hacker/layouts') diff --git a/themes/danix-xyz-hacker/layouts/shortcodes/actions.html b/themes/danix-xyz-hacker/layouts/shortcodes/actions.html new file mode 100644 index 0000000..7badab3 --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/shortcodes/actions.html @@ -0,0 +1,19 @@ +{{- $url := .Get "url" -}} +{{- $desc := .Get "desc" | default "Download" -}} +{{- $outclass := .Get "outclass" | default "" -}} +{{- $inclass := .Get "inclass" | default "" -}} + +{{- if $url -}} + +{{- else -}} + {{- errorf "actions shortcode: 'url' parameter is required" -}} +{{- end -}} -- cgit v1.2.3