aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.txt
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.txt')
-rw-r--r--layouts/_default/list.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt
index 3dbd917..0d9cee8 100644
--- a/layouts/_default/list.txt
+++ b/layouts/_default/list.txt
@@ -1,3 +1,9 @@
+# {{ .Title }}
+
+{{ $content := .RawContent -}}
+
+{{ $content }}
+
{{ range .Pages.ByPublishDate.Reverse }}
-{{ .Date.Format "2006-01-02" }} {{ .Title }} {{ with .OutputFormats.Get "txt" -}} {{ .RelPermalink }}{{ end }}
+=> {{ .RelPermalink | replaceRE `index.txt` `` }}{{if .Date }} {{ .Date.Format "2006-01-02" }}{{ end }} {{ .Title }}
{{ end }} \ No newline at end of file