summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 7 insertions, 7 deletions
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, \
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
75out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua out/style.css | out 75out/%.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] $< -> $@)