diff --git a/CHANGELOG.md b/CHANGELOG.md index 1687678fbc2bdde636d51e9d9623d81b9838166b..a979f6bfc8b540e80eeafa220dc4b0fced2c8fc9 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 d2f91656b5b2b2c876340a64c0e3eb26be57104b..b58f35113de424743eff56556279da7730e0533b 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>