From 0a3445c1b25e78780a2080b7de9b8c1b7f5ca2c3 Mon Sep 17 00:00:00 2001 From: Matthew Warman Date: Mon, 23 Dec 2024 10:41:43 +0000 Subject: [PATCH] fix: skip any empty title --- assets/js/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/index.js b/assets/js/index.js index 15e09bb05..e1e4c6130 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -111,6 +111,7 @@ Source: {{ $len := (len $list) -}} {{ range $index, $element := $list -}} + {{ if not (eq .Title "") -}} index.add( { id: {{ $index }}, @@ -124,6 +125,7 @@ Source: content: {{ .Plain | jsonify }} } ); + {{ end -}} {{ end -}} search.addEventListener('input', show_results, true);