about summary refs log tree commit diff stats
path: root/internal/components/search.templ
diff options
context:
space:
mode:
authorAlan Pearce2025-03-10 14:05:17 +0100
committerAlan Pearce2025-03-10 14:05:17 +0100
commit05a32bda78911772cb8b09f37bacbcf851a4ddba (patch)
tree11dcef029c4d47e25d361653717263525707be05 /internal/components/search.templ
parent0de558cbda214106f46d26ace622df5dbb3266fd (diff)
downloadsearchix-05a32bda78911772cb8b09f37bacbcf851a4ddba.tar.lz
searchix-05a32bda78911772cb8b09f37bacbcf851a4ddba.tar.zst
searchix-05a32bda78911772cb8b09f37bacbcf851a4ddba.zip
feat: default to combined search on root path
Diffstat (limited to 'internal/components/search.templ')
-rw-r--r--internal/components/search.templ4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/components/search.templ b/internal/components/search.templ
index 0457ff9..bbcf3f4 100644
--- a/internal/components/search.templ
+++ b/internal/components/search.templ
@@ -23,6 +23,9 @@ templ Search(tdata TemplateData, r ResultData) {
 
 templ SearchPage(tdata TemplateData, r ResultData) {
 	@Page(tdata) {
+		<p>
+			Search Nix packages and options from NixOS, Darwin and Home-Manager
+		</p>
 		@script(tdata.Assets.ByPath["/static/search.js"])
 		@Search(tdata, r)
 		<section id="results" role="list" aria-label="search results">
@@ -36,5 +39,6 @@ templ SearchPage(tdata TemplateData, r ResultData) {
 				Everything should work fine without JavaScript. If that is not the case, <a href="https://todo.sr.ht/~alanpearce/searchix">report an issue</a>
 			</p>
 		</noscript>
+		<a href="https://git.sr.ht/~alanpearce/searchix">Source code</a>
 	}
 }