all repos — archie @ b7afb3a5dd9091e83b74114407c5a0659a9e49fd

A minimal Hugo Theme

layouts/_default/list.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<ul class="posts">
 8	{{- range .Data.Pages -}}
 9		{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
10		<li class="post">
11			<span class="meta">{{ dateFormat "2006-01-02" .Date }}</span>
12			<a href="{{ .RelPermalink }}">{{.Title}}</a>
13			<span class="meta">
14				{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}
15				{{ range (.GetTerms "tags") }}[<a href="{{ .Permalink }}" class="tag">{{ .LinkTitle }}</a>] {{ end }}
16			</span>
17		</li>
18		{{- end -}}
19	{{- end -}}
20</ul>
21<p><a href="/tags">Show all tags.</a> </p>
22{{ end }}