From 272a67d7a8b8752dda3cddf44482e9d85de2c4d0 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Tue, 15 Jul 2025 14:17:39 +0800 Subject: refactor: replace _footer.scss and _shortcode.scss with UnoCSS --- layouts/_shortcodes/link.html | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'layouts/_shortcodes/link.html') diff --git a/layouts/_shortcodes/link.html b/layouts/_shortcodes/link.html index 1b9c4f79..abd1b1aa 100644 --- a/layouts/_shortcodes/link.html +++ b/layouts/_shortcodes/link.html @@ -1,14 +1,15 @@ - - {{ if and (isset .Params "image") .Params.image }} - - {{ end }} - {{ if ne (.Get "type") "podcast" }} - - {{ end }} +{{ if eq (.Get "type") "podcast" }} + + {{ .Get +{{ else }} + +

{{ .Get "title" }}

+
+{{ end }} -- cgit v1.2.3