When there is no text to render as a subtext do not render the card horizontal rule

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-18 15:55:15 -04:00
parent 14989d2949
commit 81701442ae
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,9 @@
## 2.0.1 ## 2.0.1
* Card shortcode will not longer render the horizontal rule when there is no
bottom text to render.
## 2.0.0 ## 2.0.0
* Removed content folder and moved out the Fedipage site into a separate repo. * Removed content folder and moved out the Fedipage site into a separate repo.

View file

@ -12,10 +12,12 @@ inner: description
<h3 style="margin:0;text-transform:capitalize">{{ .Get 0 }}</h3> <h3 style="margin:0;text-transform:capitalize">{{ .Get 0 }}</h3>
<small>{{ .Inner }}</small> <small>{{ .Inner }}</small>
</div> </div>
{{- if (or (.Get 2) (.Get 3) )}}
<hr style="margin:15px 0 10px 0"> <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 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 2 }}</div>
<div>{{ .Get 3 }}</div> <div>{{ .Get 3 }}</div>
</div> </div>
{{- end }}
</a> </a>
</div> </div>