aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/list.txt
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:13:20 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:13:20 +0300
commitef736304163e0952735a8620a48564c288864a94 (patch)
tree2155560a188341cf6d242856e397aa20775ca512 /layouts/_default/list.txt
parent4a53507256bfefd1e8094defd98d6b28316fa965 (diff)
Auto-commit 2024-12-22
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