2020-03-01 14:46:34 +00:00
|
|
|
{{ define "main"}}
|
|
|
|
<h1 class='title'>{{ .Title }}</h1>
|
|
|
|
{{ partial "header.html" . }}
|
2019-03-23 07:18:03 +00:00
|
|
|
<!-- search box -->
|
|
|
|
<div id="searchBox">
|
|
|
|
<input type="text" id="searchBoxInput" placeholder="Search..." />
|
2019-03-27 16:45:34 +00:00
|
|
|
<img id="searchBoxIcon" src="{{ .Site.BaseURL }}/img/search.png" />
|
2019-03-23 07:18:03 +00:00
|
|
|
</div>
|
|
|
|
<!-- search results -->
|
|
|
|
<div id="searchResults"></div>
|
2020-01-16 02:16:46 +00:00
|
|
|
<!-- tags -->
|
|
|
|
<div id="tags">
|
|
|
|
<ul>
|
|
|
|
{{ range .Site.Taxonomies.tags.ByCount }}
|
2020-01-18 03:30:53 +00:00
|
|
|
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
|
2020-01-16 02:16:46 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-03-23 07:18:03 +00:00
|
|
|
<!-- contents -->
|
|
|
|
<div id="contentsList">
|
2019-05-18 13:27:23 +00:00
|
|
|
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}
|
|
|
|
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
|
2019-03-23 07:18:03 +00:00
|
|
|
{{ if (ne $index 0) }}
|
|
|
|
<hr class="separator">
|
|
|
|
{{ end }}
|
|
|
|
<p class="date">{{ .Key }}</p>
|
|
|
|
{{ range .Pages }}
|
|
|
|
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2020-03-01 14:46:34 +00:00
|
|
|
</div>
|
|
|
|
{{ partial "footer.html" . }}
|
2020-12-22 14:19:09 +00:00
|
|
|
{{ $jquery := resources.Get "js/jquery-3.3.1.min.js" }}
|
2019-03-26 15:51:33 +00:00
|
|
|
{{ $mark := resources.Get "js/jquery.mark.es6.min.js" }}
|
|
|
|
{{ $lunr := resources.Get "js/lunr.js" }}
|
|
|
|
{{ $search := resources.Get "js/search.js" }}
|
2019-03-26 16:14:08 +00:00
|
|
|
{{ $js := slice $jquery $mark $lunr $search | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint }}
|
2019-03-26 15:51:33 +00:00
|
|
|
<script src="{{ $js.Permalink }}"></script>
|
2020-03-01 14:46:34 +00:00
|
|
|
{{ end }}
|