From 4521aaa35a077fde2b98911215f2015a2d7a242d Mon Sep 17 00:00:00 2001 From: Marvin Steadfast Date: Sat, 29 Feb 2020 16:59:36 +0100 Subject: [PATCH] copy new feed to old pliecan feed address --- Makefile | 2 ++ config.yml | 5 +++++ layouts/index.json | 5 +++++ layouts/{_default/rss.xml => index.rss.xml} | 0 4 files changed, 12 insertions(+) create mode 100644 layouts/index.json rename layouts/{_default/rss.xml => index.rss.xml} (100%) diff --git a/Makefile b/Makefile index 482e1d2..96b04ba 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,8 @@ clean: build: hugo + mkdir public/feed + cp public/index.xml public/feed/index.html install_deps: apk add --no-cache lftp git diff --git a/config.yml b/config.yml index 30022a8..27489ab 100644 --- a/config.yml +++ b/config.yml @@ -26,3 +26,8 @@ markup: unsafe: true highlight: style: algol +outputs: + home: + - HTML + - RSS + - JSON diff --git a/layouts/index.json b/layouts/index.json new file mode 100644 index 0000000..c93f805 --- /dev/null +++ b/layouts/index.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Site.RegularPages -}} + {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} diff --git a/layouts/_default/rss.xml b/layouts/index.rss.xml similarity index 100% rename from layouts/_default/rss.xml rename to layouts/index.rss.xml