diff options
| author | Miqdd <ahmadmiqdad27@te.student.pens.ac.id> | 2024-01-22 06:39:54 +0700 |
|---|---|---|
| committer | Miqdd <ahmadmiqdad27@te.student.pens.ac.id> | 2024-01-22 06:39:54 +0700 |
| commit | 04fdcac1dce2cc439dd8ad1b115507671040737e (patch) | |
| tree | fca0e8fa90c182863adf6a2baedadf8ebb46a5f4 /layouts/_default/list.html | |
Publish
Diffstat (limited to 'layouts/_default/list.html')
| -rw-r--r-- | 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 100644 index 0000000..6e8b10c --- /dev/null +++ b/layouts/_default/list.html @@ -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 "2 jan, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span> + </li> + {{- end -}} + {{- end -}} +</ul> +{{ end }} |
