-
Notifications
You must be signed in to change notification settings - Fork 3
/
dates.terms.html
41 lines (33 loc) · 1.03 KB
/
dates.terms.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{/* Populates layouts/_default/baseof.html */}}
{{ define "main" }}
{{ if eq "development" hugo.Environment }}
{{ `<!-- Template: layouts/taxonomy/dates.terms.html -->` | safeHTML }}
{{ end }}
<header class="entry-header">
<div class="entry-meta">
<span class="cat-links">
<a href="/calendar/0/">Calendar</a>
</span>
</div>
<h1 class="entry-title">Dates</h1>
</header>
<div class="entry-content" style="padding-bottom:1em;">
<dl id="list">
{{ range $key, $value := .Data.Terms }}
{{ if ne ( .Page.Title | lower ) "hidden" }}
<dt class="twocol"><a href="{{ $key }}">{{ .Page.Title }}</a></dt>
{{ end }}
{{ end }}
</dl>
</div>
{{ end }}
{{/*
nested where clauses to drill down
{{ range where (where .Data.Pages "Section" "blog" ) ".Params.featured" "!=" "true" }}
testing for this year
{{ range (.Data.Pages.GroupByDate "2006").Reverse }}
{{ if or ($edu) (ge .Key $thisyear) }}
counting pages
{{ $posts := (where .Site.RegularPages "Section" "==" "post") }}
{{ $postCount := len $posts }}
*/}}