website-theme/layouts/_default/list.html

39 lines
1.3 KiB
HTML
Raw Normal View History

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