diff options
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r-- | layouts/_default/list.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index e69de29..541c711 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -0,0 +1,21 @@ +{{- define "main" -}}
+
+<h1>{{ .Title }}</h1>
+
+{{ $pages := .Pages }}
+{{ range $pages.ByPublishDate.Reverse }}
+ <p>
+ <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
+ {{ $customDateFormat := "January 2, 2006" }}
+ {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
+ <br>
+ <small class="text-secondary">{{ .PublishDate.Format $customDateFormat }}</small>
+ {{ partial "tags" . }}
+ {{ if eq .Site.Params.showPostSummary true }}
+ <br>
+ {{ .Summary }}
+ {{ end }}
+ </p>
+{{ end }}
+
+{{- end -}}
|