diff options
author | Volpeon <git@volpeon.ink> | 2021-05-26 09:39:23 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-05-26 09:39:23 +0200 |
commit | 011e38d0175f69c8f902bfbc5676384f8b756eaf (patch) | |
tree | 09af9e014decf4e3cb487dcde226056fa8f4be14 /Makefile | |
parent | Feed: Skip entries without last_update (diff) | |
download | volpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.tar.gz volpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.tar.bz2 volpeon.ink-011e38d0175f69c8f902bfbc5676384f8b756eaf.zip |
Include content in ATOM feeds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -56,21 +56,21 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
56 | $(if $(PAGES_FILES),jq -s --arg namespace "$(NAMESPACE)" -f scripts/subpages.jq $(PAGES_FILES) > "$@.pages",touch "$@.pages") | 56 | $(if $(PAGES_FILES),jq -s --arg namespace "$(NAMESPACE)" -f scripts/subpages.jq $(PAGES_FILES) > "$@.pages",touch "$@.pages") |
57 | pandoc \ | 57 | pandoc \ |
58 | -f markdown-citations \ | 58 | -f markdown-citations \ |
59 | -t plain \ | 59 | -t html5 \ |
60 | --no-highlight \ | 60 | --no-highlight \ |
61 | --template scripts/metadata_tpl.json \ | 61 | --template scripts/metadata_tpl.json \ |
62 | --metadata namespace="$(NAMESPACE)" \ | 62 | --metadata namespace="$(NAMESPACE)" \ |
63 | --metadata file_out="$(patsubst .cache/meta/%.json,out/%.html,$@)" \ | 63 | --metadata file_out="$(patsubst .cache/meta/%.json,out/%.html,$@)" \ |
64 | --metadata-file "$@.pages" \ | 64 | --metadata-file "$@.pages" \ |
65 | -o "$@" "$<" | 65 | -o "$@.meta" "$<" |
66 | # pandoc \ | 66 | pandoc \ |
67 | -f markdown-citations \ | 67 | -f markdown-citations \ |
68 | -t markdown \ | 68 | -t html5 \ |
69 | -o "$@.content" "$<" | 69 | -o "$@.content" "$<" |
70 | # jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" | 70 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" |
71 | rm "$@.pages" | 71 | rm "$@.pages" |
72 | # rm "$@.meta" | 72 | rm "$@.meta" |
73 | # rm "$@.content" | 73 | rm "$@.content" |
74 | 74 | ||
75 | out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua out/style.css | out | 75 | out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua out/style.css | out |
76 | $(info [MARK] $< -> $@) | 76 | $(info [MARK] $< -> $@) |