From 5a2e5595e299fa52663ca8bb09dcc106c94c48f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 2 Aug 2022 19:37:52 -0500 Subject: [PATCH] generate newswire.txt file --- config.yaml | 8 ++++++++ layouts/_default/list.newswire.txt | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 layouts/_default/list.newswire.txt diff --git a/config.yaml b/config.yaml index b0b70a2..8c7fd9e 100644 --- a/config.yaml +++ b/config.yaml @@ -14,8 +14,16 @@ module: imports: - path: "github.com/kaushalmodi/hugo-atom-feed" +outputFormats: + newswire: + mediaType: "text/plain" + baseName: "newswire" + isPlainText: true + notAlternative: true + outputs: home: - HTML - RSS - ATOM + - newswire diff --git a/layouts/_default/list.newswire.txt b/layouts/_default/list.newswire.txt new file mode 100644 index 0000000..a39b990 --- /dev/null +++ b/layouts/_default/list.newswire.txt @@ -0,0 +1,3 @@ +{{- range first 1 (where .Site.RegularPages "Section" "blog") -}} +{{ .Title }} - {{ .Permalink }} +{{- end -}}