From 18c56020fe06f89e4a226db3662610b5c8755339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Mon, 20 Feb 2023 15:38:24 +0100 Subject: chore: add txt list --- layouts/_default/list.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'layouts/_default') diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt index 047ea33..430a2d2 100644 --- a/layouts/_default/list.txt +++ b/layouts/_default/list.txt @@ -1,5 +1,7 @@ -{{- range where .Pages "Params.category" "meme"}} - {{- $imageUrl := .Param "image" }} - {{- $image := resources.Get $imageUrl }} - {{- $image.Permalink }} -{{ end }} +{{- range .Pages.GroupBy "Section" }} + {{- with $.Site.GetPage "section" .Key }} + {{- range .Pages }} + {{ .Permalink }} + {{- end }} + {{- end }} +{{- end }} -- cgit v1.2.3