diff options
author | Michał M. Sapka <michal@sapka.me> | 2023-02-20 15:38:24 +0100 |
---|---|---|
committer | Michał M. Sapka <michal@sapka.me> | 2023-02-20 15:38:24 +0100 |
commit | 18c56020fe06f89e4a226db3662610b5c8755339 (patch) | |
tree | f06ff73cbf4bc09d1b1b7c5249541ec1f2d19de1 /layouts | |
parent | 79c081ddc59014cd4eb56c78ca4d8ab8403048d1 (diff) |
chore: add txt list
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/list.txt | 12 |
1 files changed, 7 insertions, 5 deletions
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 }} |