From 830e14f372fcff094448ac8528386ab381f6f35c Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Thu, 9 May 2024 19:27:15 +0200
Subject: refactor: pass Source object to templates

---
 frontend/templates/blocks/search.gotmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend')

diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl
index 0be63c1..e9d69b6 100644
--- a/frontend/templates/blocks/search.gotmpl
+++ b/frontend/templates/blocks/search.gotmpl
@@ -3,7 +3,7 @@
 
 {{- define "main" }}
   <form id="search" action="results">
-    <label for="query">{{ sourceName .Source }} option search</label>
+    <label for="query">{{ .Source.Name }} option search</label>
     <fieldset>
       <input id="query" name="query" type="search" value="{{ .Query }}" />
       <button>Search</button>
-- 
cgit 1.4.1