Subject: [PATCH links] Fixing the formatting on bookmark saved listing page when the link description is too small.

From: Peter Sanchez <[email-masked]>
Date: Fri, 9 May 2025 07:32:44 -0600

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

---

From: "Peter Sanchez" <[email-masked]>
Date: Fri, 09 May 2025 07:38:29 -0600

Applied.

To [email-masked]:~netlandish/links
   8ca5b42..1fba6eb  master -> master