parent
9201b87c14
commit
15d5ef2ddc
4 changed files with 41 additions and 1 deletions
@ -0,0 +1,27 @@ |
||||
{{ define "main" }} <!-- https://gist.github.com/eddiewebb/735feb48f50f0ddd65ae5606a1cb41ae --> |
||||
|
||||
<h1>{{ .Title }}</h1> |
||||
|
||||
<section> |
||||
<form action="{{ "search" | absURL }}"> |
||||
<input id="search-query" name="s"/> |
||||
</form> |
||||
<div id="search-results"> |
||||
<h3>Matching pages</h3> |
||||
</div> |
||||
</section> |
||||
<!-- 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"> |
||||
<div id="summary-${key}"> |
||||
<h4><a href="${link}">${title}</a></h4> |
||||
<p>${snippet}</p> |
||||
</div> |
||||
</script> |
||||
{{ end }} |
||||
|
||||
{{ define "footer" }} |
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> |
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.2.0/fuse.min.js"></script> |
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js"></script> |
||||
<script src="{{ "js/search.js" | absURL }}"></script> |
||||
{{ end }} |
||||
@ -1 +1 @@ |
||||
Subproject commit 4f099ea33a4873a9e5aa0871a17e1ff80c719484 |
||||
Subproject commit 96d80a102c056336358c99f9659f549c3e22db95 |
||||
Loading…
Reference in new issue