feat: update layouts default term to match default list.

This commit is contained in:
Samarth Hattangady 2020-07-22 13:53:34 +05:30
parent 4d4a11ed15
commit 2c28ffc741

View File

@ -1,15 +1,17 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
{{ define "main" }}
{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}
<body>
<div class="container wrapper tags">
{{ partial "head.html" . }}
<h1 class="page-title">All tags</h1>
</div>
{{ partial "footer.html" . }}
</body>
</html>
<ul class="posts">
{{- range .Data.Pages -}}
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<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>
{{ end }}