From eee0148d96a222251aed41e245d3a1ddb81d8044 Mon Sep 17 00:00:00 2001 From: patrickpoole Date: Sat, 27 Jan 2024 14:24:14 -0700 Subject: [PATCH] card sections now have the same fixed height and a justify between flex property so they look more uniform and consistent --- layouts/partials/card.html | 45 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 22 deletions(-) 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 }} +
+
+