diff options
author | Volpeon <git@volpeon.ink> | 2021-12-17 15:23:34 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-12-17 15:23:34 +0100 |
commit | 5320823ae5775b1857ba232262cdeb06c4ffbb6b (patch) | |
tree | 42d889c57c19603f1912eaa8cb2e4814af2106ae /Makefile | |
parent | Added category for doodles (diff) | |
download | volpeon.ink-5320823ae5775b1857ba232262cdeb06c4ffbb6b.tar.gz volpeon.ink-5320823ae5775b1857ba232262cdeb06c4ffbb6b.tar.bz2 volpeon.ink-5320823ae5775b1857ba232262cdeb06c4ffbb6b.zip |
Use full image URLs in feeds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 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.jq scripts/metadata_tpl.json | .cache/meta | 50 | .cache/meta/%.json: content/%.md $$(call subpages,$$(call namespace,$$@,)) 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) |
@@ -66,6 +66,9 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
66 | pandoc \ | 66 | pandoc \ |
67 | -f markdown-citations \ | 67 | -f markdown-citations \ |
68 | -t html5 \ | 68 | -t html5 \ |
69 | --lua-filter scripts/subpages.lua \ | ||
70 | $(GLOBAL_METADATA) \ | ||
71 | --metadata namespace="$(NAMESPACE)" \ | ||
69 | -o "$@.content" "$<" | 72 | -o "$@.content" "$<" |
70 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" | 73 | jq '. + { content: $$content }' --rawfile content "$@.content" "$@.meta" > "$@" |
71 | rm "$@.pages" | 74 | rm "$@.pages" |