Subject: [PATCH links] Remove ordering on non bookmark listing pages

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

Changelog-fixed: No longer showing empty ordering options on pages that
  don't support it.
---
 templates/link_list.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/templates/link_list.html b/templates/link_list.html
index e9c053c..10166ed 100644
--- a/templates/link_list.html
+++ b/templates/link_list.html
@@ -227,6 +227,7 @@
   {{end}}
       </div> {{- /* col-9 */ -}}
       <div class="col-3"> {{- /* right side bar */ -}}
+          {{ if .orderDir }}
           <div class="row">
 	    <div class="col-2">
 	      <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="menu-item__icon"><path stroke-linecap="round" stroke-linejoin="round" d="M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5" /></svg>
@@ -239,6 +240,7 @@
 	    {{ end }}
 	    </div>
 	  </div>
+	  {{ end }}
           <p>{{ .pd.Data.tags }}</p>
 	  <hr>
 	  <p>
-- 
2.47.2