diff options
author | Julien Dessaux | 2021-09-12 14:03:45 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-12 14:03:45 +0200 |
commit | 3bba78a22c4a3c31a936bbcec954420ce1776776 (patch) | |
tree | a11c0e22d3c76e9ea5650f307b38a87b9d1bfa55 /layouts | |
parent | Remove subtitles from the index.json since I do not use those (diff) | |
download | www-3bba78a22c4a3c31a936bbcec954420ce1776776.tar.gz www-3bba78a22c4a3c31a936bbcec954420ce1776776.tar.bz2 www-3bba78a22c4a3c31a936bbcec954420ce1776776.zip |
Implemented search functionality
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/nav.html | 1 | ||||
-rw-r--r-- | layouts/search/single.html | 7 |
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 }} |