diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-10-06 21:39:38 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-10-06 21:39:38 +0200 |
| commit | 4d2b9eee4b64807a90d9fcf33de8ba53c4150573 (patch) | |
| tree | 4e6ca324c584198a24d0a529ee5b047c6df39115 /layouts | |
| parent | a4355bd0e7b9c8d9e1edf1e157a1a1de14c4e12e (diff) | |
Stop rendering empty description
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/partials/list/default.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/layouts/partials/list/default.html b/layouts/partials/list/default.html index e088f1c..f1eef3d 100644 --- a/layouts/partials/list/default.html +++ b/layouts/partials/list/default.html @@ -9,13 +9,11 @@ </time> </span> - <div class="description"> - {{ if .Params.description }} + {{ if and .Params.description (ne .Params.description "") }} + <div class="description"> {{ .Params.description }} - {{ else if .Summary }} - {{ .Summary }} - {{ end }} - </div> + </div> + {{ end }} <div class="mt-2"> <a class="read-more" href="{{ .Permalink }}"> |
