From 2ff970cd5a61d74b2bd0b6d099ccc6880e2394d3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 17 Nov 2021 17:45:04 +0100 Subject: Re-add stylesheet hash --- Makefile | 1 + templates/base.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 65ef838..55ec938 100644 --- a/Makefile +++ b/Makefile @@ -85,6 +85,7 @@ out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*. $(GLOBAL_METADATA) \ --metadata-file "$(filter .cache/meta/%.json,$^)" \ --metadata file_out="$@" \ + --metadata style_hash="$(shell sha256sum out/style.css | cut -d ' ' -f 1)" \ $(PANDOC_FILTERS) \ -o "$@" "$<" diff --git a/templates/base.html b/templates/base.html index 04689dc..13cce16 100644 --- a/templates/base.html +++ b/templates/base.html @@ -35,14 +35,14 @@ $if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$ - + - + -- cgit v1.2.3-70-g09d2