put search page online
This commit is contained in:
parent
cfaa9504a1
commit
8467cd79e4
|
@ -130,7 +130,12 @@ pygmentscodefencesguesssyntax = true
|
||||||
url = "links/"
|
url = "links/"
|
||||||
weight = 50
|
weight = 50
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Search"
|
||||||
|
url = "search/"
|
||||||
|
weight = 60
|
||||||
|
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
name = "Impressum"
|
name = "Impressum"
|
||||||
url = "impressum/"
|
url = "impressum/"
|
||||||
weight = 60
|
weight = 70
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: "Search Results"
|
title: "Search"
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 0.1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
|
|
|
@ -1,17 +1,26 @@
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
|
|
||||||
|
<!-- needed script magic -->
|
||||||
<script src="/jquery-3.4.0.js"></script>
|
<script src="/jquery-3.4.0.js"></script>
|
||||||
<script src="/fuse.js"></script>
|
<script src="/fuse.js"></script>
|
||||||
<script src="/jquery.mark.js"></script>
|
<script src="/jquery.mark.js"></script>
|
||||||
<script src="/search.js"></script>
|
<script src="/search.js"></script>
|
||||||
|
|
||||||
<div class="my-auto" >
|
<!-- search content -->
|
||||||
<form action="{{ "search" | absURL }}">
|
<section class="container page">
|
||||||
<input id="search-query" name="s"/>
|
|
||||||
</form>
|
<header>
|
||||||
<div id="search-results">
|
<h1>Search</h1>
|
||||||
<h3>Matching pages</h3>
|
</header>
|
||||||
</div>
|
|
||||||
</div>
|
<article>
|
||||||
|
|
||||||
|
<form action="{{ "search" | absURL }}">
|
||||||
|
<input id="search-query" name="s"/>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div id="search-results">
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
|
<!-- this template is sucked in by search.js and appended to the search-results div above. So editing here will adjust style -->
|
||||||
<script id="search-result-template" type="text/x-js-template">
|
<script id="search-result-template" type="text/x-js-template">
|
||||||
|
@ -22,4 +31,9 @@
|
||||||
${ isset categories }<p>Categories: ${categories}</p>${ end }
|
${ isset categories }<p>Categories: ${categories}</p>${ end }
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
</article>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in a new issue