aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.twtxt.txt
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-24 02:44:49 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-24 02:44:49 +0300
commit7fa38ae15fea17858bf0161512fb5a3585d552b3 (patch)
tree71736696de48bb5a921f96aeef5a464ec03df5bf /layouts/index.twtxt.txt
parent9801aa876b48f2ad35ed65119bd2c24d30a680a3 (diff)
Auto-commit 2024-12-24
Diffstat (limited to 'layouts/index.twtxt.txt')
-rw-r--r--layouts/index.twtxt.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/index.twtxt.txt b/layouts/index.twtxt.txt
new file mode 100644
index 0000000..b80f4aa
--- /dev/null
+++ b/layouts/index.twtxt.txt
@@ -0,0 +1,6 @@
+{{- $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections -}}
+{{- $notHidden := where .Site.RegularPages "Params.hidden" "!=" true -}}
+{{- $filtered := ($pages | intersect $notHidden) -}}
+{{- range $pages -}}
+{{.Date.Format "2006-01-02T15:04:05Z07:00"}}{{"\t"}}{{ .Title }}{{ "\n" }}
+{{- end -}} \ No newline at end of file