diff options
author | Shubham Saini <me@ubh.sh> | 2023-02-09 00:19:28 +0000 |
---|---|---|
committer | Shubham Saini <me@ubh.sh> | 2023-02-09 00:19:28 +0000 |
commit | d7da16ecfa5cadb643df78694db44963ba665cbe (patch) | |
tree | 00c5234f542f7064e91827064767bcf59f094a2c /layouts/_default/list.html |
init
Diffstat (limited to 'layouts/_default/list.html')
-rwxr-xr-x | layouts/_default/list.html | 17 |
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 }} | ||