themu/layouts/_default/list.html

32 lines
727 B
HTML
Raw Normal View History

2020-04-08 21:44:29 +03:00
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper list">
{{ partial "head.html" . }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}}
{{- else -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</li>
{{- end -}}
{{- end -}}
</ul>
2020-04-14 20:52:44 +03:00
{{ partial "footer.html" . }}
2020-04-08 21:44:29 +03:00
</div>
2020-04-14 20:52:44 +03:00
2020-04-08 21:44:29 +03:00
</body>
</html>