Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html21
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 -}}