diff options
author | Volpeon <git@volpeon.ink> | 2021-12-17 17:41:12 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-12-17 17:41:12 +0100 |
commit | cb554ebd19322f4bbef75294cdedb09e4c507bb3 (patch) | |
tree | fe612f0e87007684489aa46c43c59acc6a76417a /Makefile | |
parent | Update (diff) | |
download | volpeon.ink-cb554ebd19322f4bbef75294cdedb09e4c507bb3.tar.gz volpeon.ink-cb554ebd19322f4bbef75294cdedb09e4c507bb3.tar.bz2 volpeon.ink-cb554ebd19322f4bbef75294cdedb09e4c507bb3.zip |
Fix subpage content
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -47,7 +47,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
47 | $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -maxdepth 1 -type f -name "*.md" ! -name "index.md") \ | 47 | $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -maxdepth 1 -type f -name "*.md" ! -name "index.md") \ |
48 | $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -mindepth 2 -maxdepth 2 -type f -name "index.md")) | 48 | $(shell test -d $(patsubst .cache/meta%,content%,$(1)) && find $(patsubst .cache/meta%,content%,$(1)) -mindepth 2 -maxdepth 2 -type f -name "index.md")) |
49 | 49 | ||
50 | .cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta | 50 | .cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) filters/*.lua scripts/subpages.lua scripts/subpages.jq scripts/metadata_tpl.json | .cache/meta |
51 | $(info [META] $< -> $@) | 51 | $(info [META] $< -> $@) |
52 | 52 | ||
53 | mkdir -p $(@D) | 53 | mkdir -p $(@D) |
@@ -69,6 +69,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
69 | --lua-filter scripts/subpages.lua \ | 69 | --lua-filter scripts/subpages.lua \ |
70 | $(GLOBAL_METADATA) \ | 70 | $(GLOBAL_METADATA) \ |
71 | --metadata namespace="$(NAMESPACE)" \ | 71 | --metadata namespace="$(NAMESPACE)" \ |
72 | $(PANDOC_FILTERS) \ | ||
72 | -o "$@.content" "$<" | 73 | -o "$@.content" "$<" |
73 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" | 74 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" |
74 | rm "$@.pages" | 75 | rm "$@.pages" |