copy new feed to old pliecan feed address

This commit is contained in:
Marvin Steadfast 2020-02-29 16:59:36 +01:00
parent 4fe0ab5de6
commit 4521aaa35a
4 changed files with 12 additions and 0 deletions

View File

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

View File

@ -26,3 +26,8 @@ markup:
unsafe: true
highlight:
style: algol
outputs:
home:
- HTML
- RSS
- JSON

5
layouts/index.json Normal file
View File

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