blob: 3c267c74709a802393111abc2275a822931775ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{{define "main"}}
<section class="container text-monospace mt-3">
<h2 class="text-center">{{.Title}}</h2>
{{if eq .Kind "taxonomyTerm"}}
{{range $key, $value := .Data.Terms.Alphabetical}}
<span class='badge badge-dark'><a class='text-white' href='{{ "tags/" | absURL }}{{ $value.Name | lower }}'>{{ $value.Name }} ({{.Count }})</a></span>
{{end}}
{{else}}
<div class="row">
{{range .Pages}}
<div class="col-md-5 m-3">
<h6><a href="{{.Permalink}}">{{ .Title }}</a></h6>
{{if eq .Section "post"}}
<small class="text-secondary">{{.PublishDate.Format "January 2, 2006"}} | {{.ReadingTime}} minute read</small>
{{end}}
</div>
{{end}}
</div>
{{end }}
</section>
{{end}}
|