Merge pull request #11 from samhattangady/master

Fix tags issue. Use the list.html code for term.html template
This commit is contained in:
Athul Cyriac Ajay 2020-07-22 15:29:03 +05:30 committed by GitHub
commit 117d3373f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,17 @@
<!DOCTYPE html> {{ define "main" }}
<html> {{ if isset .Data "Term" }}
{{ partial "header.html" . }} <h1>Entries tagged - "{{ .Data.Term }}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}
<body> <ul class="posts">
<div class="container wrapper tags"> {{- range .Data.Pages -}}
{{ partial "head.html" . }} {{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
<li class="post">
<h1 class="page-title">All tags</h1> <a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
</div> </li>
{{- end -}}
{{ partial "footer.html" . }} {{- end -}}
</body> </ul>
{{ end }}
</html>