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 -}}