diff --git a/layouts/partials/card.html b/layouts/partials/card.html index 9ac149a55..6bc0bc009 100644 --- a/layouts/partials/card.html +++ b/layouts/partials/card.html @@ -1,26 +1,27 @@ +{{/* hover:drop-shadow-[0_0_2px_rgba(249,115,22,1) */}} +
+ + {{/* if img is defined, use it, otherwise default */}} {{ $img := cond + (isset . "img") .img (print .context.RelPermalink "img/featured.webp") }} + {{/* make sure file exists */}} {{ $img := cond (fileExists $img) $img + "/img/default-cover.webp" }} -{{/* hover:drop-shadow-[0_0_2px_rgba(249,115,22,1) */}} + {{ .context.Title }} - -
- - - {{/* if img is defined, use it, otherwise default */}} - {{ $img := cond (isset . "img") .img (print .context.RelPermalink "img/featured.webp") }} - {{/* make sure file exists */}} - {{ $img := cond (fileExists $img) $img "/img/default-cover.webp" }} - - {{ .context.Title }} - -
-
{{ .context.Title }}
-

{{ .context.Description }}

- {{ range .context.Params.tags }} - - #{{ . }} - - {{ end }} -
-
+
+
{{ .context.Title }}
+

{{ .context.Description }}

+
+ {{ range .context.Params.tags }} + #{{ . }} {{ end }} +
+
+