From 79e99d5f3bcfd0397c486cd6a5983bfd6adb1f84 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 15 Oct 2023 12:55:32 -0400
Subject: [PATCH] Made it so cards do not need to be links

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

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e006e7bbc..6d71c2fbb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@
     upstream here without needing to worry about conflicts due to content.
 * Fixed links at the bottom of posts that direct people to the gitlab page for
     the post.
+* Card shortcodes no longer need to be linkable. By leaving the url argument as
+    an empty string it will not render as a clickable link.
 
 ## 1.1.0
 
diff --git a/layouts/shortcodes/card.html b/layouts/shortcodes/card.html
index 8edd66a2e..d2f91656b 100644
--- a/layouts/shortcodes/card.html
+++ b/layouts/shortcodes/card.html
@@ -7,7 +7,7 @@ inner: description
 -->
 
 <div class="col">
-  <a class="card" href="{{ .Get 1 }}">
+  <a class="card" {{ if .Get 1 }}href="{{ .Get 1 }}"{{ end }}>
     <div class="card__body">
       <h3 style="margin:0;text-transform:capitalize">{{ .Get 0 }}</h3>
       <small>{{ .Inner }}</small>
-- 
GitLab