From 631547a75142326a7c71bdf123e1475217a5ad73 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 12:42:56 +0200 Subject: chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme) --- layouts/shortcodes/actions.html | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'layouts/shortcodes/actions.html') diff --git a/layouts/shortcodes/actions.html b/layouts/shortcodes/actions.html index 296a211..7badab3 100644 --- a/layouts/shortcodes/actions.html +++ b/layouts/shortcodes/actions.html @@ -1,7 +1,19 @@ -{{ $link := .Get "url" }} -{{ $desc := .Get "desc" }} -{{ $outclass := .Get "outclass" }} -{{ $inclass := .Get "inclass" }} - +{{- $url := .Get "url" -}} +{{- $desc := .Get "desc" | default "Download" -}} +{{- $outclass := .Get "outclass" | default "" -}} +{{- $inclass := .Get "inclass" | default "" -}} + +{{- if $url -}} +
+ + + {{ $desc }} + +
+{{- else -}} + {{- errorf "actions shortcode: 'url' parameter is required" -}} +{{- end -}} -- cgit v1.2.3