2020-01-15 22:07:43 -05:00
|
|
|
{{ define "main"}}
|
|
|
|
{{ partial "header.html" . }}
|
|
|
|
<!-- search box -->
|
|
|
|
<div id="searchBox">
|
|
|
|
<input type="text" id="searchBoxInput" placeholder="Search..." />
|
|
|
|
<img id="searchBoxIcon" src="{{ .Site.BaseURL }}/img/search.png" />
|
|
|
|
</div>
|
|
|
|
<!-- search results -->
|
|
|
|
<div id="searchResults"></div>
|
2020-02-16 17:29:11 -05:00
|
|
|
<!-- tags -->
|
|
|
|
<div id="tags">
|
|
|
|
<ul>
|
|
|
|
{{ range .Site.Taxonomies.tags.ByCount }}
|
|
|
|
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-01-15 22:07:43 -05:00
|
|
|
<!-- contents -->
|
|
|
|
<div id="contentsList">
|
|
|
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
|
|
|
{{ range $index, $value := .Pages.GroupByDate $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>
|
|
|
|
{{ partial "footer.html" . }}
|
2020-12-22 09:36:03 -05:00
|
|
|
{{ $jquery := resources.Get "js/jquery-3.5.1.min.js" }}
|
2020-01-15 22:07:43 -05:00
|
|
|
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
|
|
|
{{ $lunr := resources.Get "js/lunr.js" }}
|
|
|
|
{{ $search := resources.Get "js/search.js" }}
|
|
|
|
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }}
|
|
|
|
<script src="{{ $js.Permalink }}"></script>
|
|
|
|
{{ end }}
|