about summary refs log tree commit diff stats
path: root/frontend/templates/index.gotmpl
diff options
context:
space:
mode:
authorAlan Pearce2024-05-07 18:54:45 +0200
committerAlan Pearce2024-05-07 18:54:45 +0200
commit771ef706d7c70f583dad956077eaf79fc4fdc093 (patch)
treee5940f27bcec96607dfd024b00dc2d34ee9df19e /frontend/templates/index.gotmpl
parentc15b142b18dcdc7f5ab6d5f1afca8ae1696692cc (diff)
downloadsearchix-771ef706d7c70f583dad956077eaf79fc4fdc093.tar.lz
searchix-771ef706d7c70f583dad956077eaf79fc4fdc093.tar.zst
searchix-771ef706d7c70f583dad956077eaf79fc4fdc093.zip
style: split homepage and search page
Diffstat (limited to 'frontend/templates/index.gotmpl')
-rw-r--r--frontend/templates/index.gotmpl13
1 files changed, 6 insertions, 7 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl
index d5046e1..3c2840a 100644
--- a/frontend/templates/index.gotmpl
+++ b/frontend/templates/index.gotmpl
@@ -13,18 +13,17 @@
       <p>Search Nix Packages and options from NixOS, Darwin and Home-Manager</p>
       <nav>
         <a href="/">Home</a>
+        <a href="/search/nixos">NixOS Options</a>
       </nav>
     </header>
     <main>
-      <label for="query">Search </label>
-      <form id="search" action="/options/results">
-        <input id="query" name="query" type="search" value="{{ .Query }}" />
-        <button>Search</button>
-      </form>
-      <div id="results">{{ block "results" . }}{{ end }}</div>
+      {{ block "main" . }}
+        <p>Hello!</p>
+      {{ end }}
     </main>
     <footer>Made by <a href="https://alanpearce.eu">Alan Pearce</a></footer>
-    <script src="/static/search.js" defer></script>
+    {{ block "js" . }}
+    {{ end }}
     {{ .LiveReload }}
   </body>
 </html>