michal-sapka-me

Codebase for my homepage.
git clone git://vcs.sapka.me/michal-sapka-me
Log | Files | Refs

commit 18c56020fe06f89e4a226db3662610b5c8755339
parent 79c081ddc59014cd4eb56c78ca4d8ab8403048d1
Author: MichaƂ M. Sapka <michal@sapka.me>
Date:   Mon, 20 Feb 2023 15:38:24 +0100

chore: add txt list

Diffstat:
Mconfig.toml | 9+++++++++
Mlayouts/_default/list.txt | 12+++++++-----
2 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/config.toml b/config.toml @@ -6,3 +6,12 @@ tagline = "Hello do d-s's weblog!" defaultDescription = "Welcome to my blog!" plausibleDomain = "d-s.sh" +[outputFormats.TXT] + mediaType = "text/plain" + sufix = "txt" + isPlainText = true + +[outputs] + home = [ "HTML", "RSS", "TXT" ] + term = [ "HTML" ] + taxonomy = [ "HTML" ] diff --git 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 }}