diff --git a/CHANGELOG.md b/CHANGELOG.md index e006e7bbce3cf830024eaba57b808dc8977f7cc4..6d71c2fbb4b0cd2d221f0c456b1acd0cceac017d 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 8edd66a2e932acf74feabde7f2aaa1dd8abcccc6..d2f91656b5b2b2c876340a64c0e3eb26be57104b 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>