From 011e38d0175f69c8f902bfbc5676384f8b756eaf Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 26 May 2021 09:39:23 +0200 Subject: Include content in ATOM feeds --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4a58e8..b2fcd6c 100644 --- a/Makefile +++ b/Makefile @@ -56,21 +56,21 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ $(if $(PAGES_FILES),jq -s --arg namespace "$(NAMESPACE)" -f scripts/subpages.jq $(PAGES_FILES) > "$@.pages",touch "$@.pages") pandoc \ -f markdown-citations \ - -t plain \ + -t html5 \ --no-highlight \ --template scripts/metadata_tpl.json \ --metadata namespace="$(NAMESPACE)" \ --metadata file_out="$(patsubst .cache/meta/%.json,out/%.html,$@)" \ --metadata-file "$@.pages" \ - -o "$@" "$<" -# pandoc \ + -o "$@.meta" "$<" + pandoc \ -f markdown-citations \ - -t markdown \ + -t html5 \ -o "$@.content" "$<" -# jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" + jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" rm "$@.pages" -# rm "$@.meta" -# rm "$@.content" + rm "$@.meta" + rm "$@.content" out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua out/style.css | out $(info [MARK] $< -> $@) -- cgit v1.2.3-70-g09d2