From 81701442ae8a684577e8576799484165bac40a6f Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Wed, 18 Oct 2023 15:55:15 -0400
Subject: [PATCH] When there is no text to render as a subtext do not render
 the card horizontal rule

---
 CHANGELOG.md                 | 3 +++
 layouts/shortcodes/card.html | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1687678fb..a979f6bfc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@
 
 ## 2.0.1
 
+* Card shortcode will not longer render the horizontal rule when there is no
+    bottom text to render.
+
 ## 2.0.0
 
 * Removed content folder and moved out the Fedipage site into a separate repo.
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html
index d2f91656b..b58f35113 100644
--- a/layouts/shortcodes/card.html
+++ b/layouts/shortcodes/card.html
@@ -12,10 +12,12 @@ inner: description
       <h3 style="margin:0;text-transform:capitalize">{{ .Get 0 }}</h3>
       <small>{{ .Inner }}</small>
     </div>
+    {{- if (or (.Get 2) (.Get 3) )}}
     <hr style="margin:15px 0 10px 0">
     <div style="display:flex;flex-direction:row;justify-content:space-between;padding:0 15px 10px 15px;font-size:0.8em">
       <div>{{ .Get 2 }}</div>
       <div>{{ .Get 3 }}</div>
     </div>
+    {{- end }}
   </a>
 </div>
-- 
GitLab