all repos — archie @ 2c28ffc741da78cd4b4f2136ae33b4f3502e078e

A minimal Hugo Theme

layouts/_default/term.html (view raw)

 1{{ define "main" }}
 2{{ if isset .Data "Term" }}
 3<h1>Entries tagged - "{{ .Data.Term }}"</h1>
 4{{ else }}
 5<h1 class="page-title">All articles</h1>
 6{{ end }}
 7
 8<ul class="posts">
 9	{{- range .Data.Pages -}}
10		{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
11		<li class="post">
12			<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
13		</li>
14		{{- end -}}
15	{{- end -}}
16</ul>
17{{ end }}