From 7fa38ae15fea17858bf0161512fb5a3585d552b3 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Tue, 24 Dec 2024 02:44:49 +0300 Subject: Auto-commit 2024-12-24 --- layouts/index.twtxt.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 layouts/index.twtxt.txt (limited to 'layouts') 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 -- cgit v1.2.3