aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-12 14:03:45 +0200
committerJulien Dessaux2021-09-12 14:03:45 +0200
commit3bba78a22c4a3c31a936bbcec954420ce1776776 (patch)
treea11c0e22d3c76e9ea5650f307b38a87b9d1bfa55 /layouts
parentRemove subtitles from the index.json since I do not use those (diff)
downloadwww-3bba78a22c4a3c31a936bbcec954420ce1776776.tar.gz
www-3bba78a22c4a3c31a936bbcec954420ce1776776.tar.bz2
www-3bba78a22c4a3c31a936bbcec954420ce1776776.zip
Implemented search functionality
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/nav.html1
-rw-r--r--layouts/search/single.html7
2 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index f18fcd3..109f687 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -2,7 +2,6 @@
<nav>
<ul>
<li class="nav-menu-title"><a href="/">{{ .Site.Title }}</a></li>
- <li><a href="/tags/">Tags</a></li>
{{- $p := . -}}
{{- range .Site.Menus.main.ByWeight -}}
{{- $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}}
diff --git a/layouts/search/single.html b/layouts/search/single.html
new file mode 100644
index 0000000..7a01c2d
--- /dev/null
+++ b/layouts/search/single.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+
+{{ .Content }}
+
+{{ print "{{ template \"search\" . }}" }}
+
+{{ end }}