mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-12-23 19:04:27 +00:00
25 lines
1,006 B
HTML
25 lines
1,006 B
HTML
{{ define "main"}}
|
|
<div>
|
|
<div class="searchBoxContainer">
|
|
<input type="text" id="searchBox" class="searchBox" placeholder="Search..." />
|
|
<img id="searchBoxIcon" class="searchBoxIcon" src="/img/search.png" />
|
|
</div>
|
|
<div id="searchResults" class="searchResults"></div>
|
|
{{ range $index, $value := .Pages.GroupByDate .Site.Params.listPageDateFormat }}
|
|
{{ if (ne $index 0) }}
|
|
<hr class="separator">
|
|
{{ end }}
|
|
<p class="date">{{ .Key }}</p>
|
|
{{ range .Pages }}
|
|
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
<script src="/js/jquery-3.3.1.min.js"></script>
|
|
<script src="/js/jquery.mark.es6.min.js"></script>
|
|
<script src="/js/lunr.js"></script>
|
|
<script src="/js/lunr.stemmer.support.js"></script>
|
|
<script src="/js/tinyseg.js"></script>
|
|
<script src="/js/lunr.ja.js"></script>
|
|
<script src="/js/search.js"></script>
|
|
{{ end }}
|