diff options
author | Volpeon <git@volpeon.ink> | 2021-05-16 09:42:07 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-05-16 09:42:07 +0200 |
commit | 541355eadcfe5c39c6e11e9e435b12f325c60f49 (patch) | |
tree | 37105c3d3c06b881cf8c3ab9d37765bb7526d5ad /Makefile | |
parent | Design adjustments (diff) | |
download | volpeon.ink-541355eadcfe5c39c6e11e9e435b12f325c60f49.tar.gz volpeon.ink-541355eadcfe5c39c6e11e9e435b12f325c60f49.tar.bz2 volpeon.ink-541355eadcfe5c39c6e11e9e435b12f325c60f49.zip |
Cache busting for stylesheet
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -62,7 +62,7 @@ subpages = $(patsubst content/%.md,.cache/meta/%.json, \ | |||
62 | -o "$@" "$<" | 62 | -o "$@" "$<" |
63 | rm "$(PAGES)" | 63 | rm "$(PAGES)" |
64 | 64 | ||
65 | out/%.html: content/%.md .cache/meta/%.json $(TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua | out | 65 | out/%.html: content/%.md .cache/meta/%.json $(TEMPLATES_SRC) metadata/*.yaml filters/*.lua scripts/metadata_filter.lua out/style.css | out |
66 | $(info [MARK] $< -> $@) | 66 | $(info [MARK] $< -> $@) |
67 | 67 | ||
68 | mkdir -p $(@D) | 68 | mkdir -p $(@D) |
@@ -74,6 +74,7 @@ out/%.html: content/%.md .cache/meta/%.json $(TEMPLATES_SRC) metadata/*.yaml fil | |||
74 | --lua-filter scripts/metadata_filter.lua \ | 74 | --lua-filter scripts/metadata_filter.lua \ |
75 | $(GLOBAL_METADATA) \ | 75 | $(GLOBAL_METADATA) \ |
76 | --metadata-file "$(filter .cache/meta/%.json,$^)" \ | 76 | --metadata-file "$(filter .cache/meta/%.json,$^)" \ |
77 | --metadata style_hash="$(shell sha256sum out/style.css | cut -d ' ' -f 1)" \ | ||
77 | $(PANDOC_FILTERS) \ | 78 | $(PANDOC_FILTERS) \ |
78 | -o "$@" "$<" | 79 | -o "$@" "$<" |
79 | 80 | ||