summaryrefslogtreecommitdiff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rwxr-xr-xlayouts/_default/list.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100755
index 0000000..41a4c6f
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,17 @@
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
8<ul class="posts">
9 {{- range .Data.Pages -}}
10 {{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}}
11 <li class="post">
12 <a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span>
13 </li>
14 {{- end -}}
15 {{- end -}}
16</ul>
17{{ end }}