diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -62,13 +62,16 @@ subpages = $(patsubst content/%.md,.cache/meta/%.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 | $(PANDOC_FILTERS) \ | ||
| 65 | -o "$@.meta" "$<" | 66 | -o "$@.meta" "$<" |
| 66 | pandoc \ | 67 | pandoc \ |
| 67 | -f markdown-citations \ | 68 | -f markdown-citations \ |
| 68 | -t html5 \ | 69 | -t html5 \ |
| 70 | --lua-filter scripts/metadata_filter.lua \ | ||
| 69 | --lua-filter scripts/subpages.lua \ | 71 | --lua-filter scripts/subpages.lua \ |
| 70 | $(GLOBAL_METADATA) \ | 72 | $(GLOBAL_METADATA) \ |
| 71 | --metadata namespace="$(NAMESPACE)" \ | 73 | --metadata-file "$@.meta" \ |
| 74 | --metadata file_out="$@" \ | ||
| 72 | $(PANDOC_FILTERS) \ | 75 | $(PANDOC_FILTERS) \ |
| 73 | -o "$@.content" "$<" | 76 | -o "$@.content" "$<" |
| 74 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" | 77 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" |
