mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 09:32:27 +00:00
Switch to theme based on Archie
This commit is contained in:
17
themes/archie/layouts/_default/term.html
Normal file
17
themes/archie/layouts/_default/term.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
{{ 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 (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 }}
|
Reference in New Issue
Block a user