Fixes: https://todo.code.netlandish.com/~netlandish/links/111
Changelog-fixed: URL jumping up with description when description is too
short. Happens on saved bookmark listing pages.
---
templates/link_list.html | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/templates/link_list.html b/templates/link_list.html
index 10166ed..de514ae 100644
--- a/templates/link_list.html
+++ b/templates/link_list.html
@@ -84,11 +84,13 @@
<div class="button outline primary tag tag-popular is-small">{{ .pCount }}</div>
</h3>
</div>
+ {{ if .pDescription }}
<div class="row">
- <p class="is-marginless">
- {{ if .pDescription }}<p>{{ htmlSafe (truncate .pDescription 200) }}</p>{{ end }}
- <small>{{ .pURL }}</small>
- </p>
+ <p class="is-marginless">{{ htmlSafe (truncate .pDescription 200) }}</p>
+ </div>
+ {{ end }}
+ <div class="row">
+ <p class="is-marginless"><small>{{ .pURL }}</small></p>
</div>
<hr>
{{ end }}
--
2.47.2