diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | templates/base.html | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -85,6 +85,7 @@ out/%.html: content/%.md .cache/meta/%.json $(CONTENT_TEMPLATES_SRC) metadata/*. | |||
85 | $(GLOBAL_METADATA) \ | 85 | $(GLOBAL_METADATA) \ |
86 | --metadata-file "$(filter .cache/meta/%.json,$^)" \ | 86 | --metadata-file "$(filter .cache/meta/%.json,$^)" \ |
87 | --metadata file_out="$@" \ | 87 | --metadata file_out="$@" \ |
88 | --metadata style_hash="$(shell sha256sum out/style.css | cut -d ' ' -f 1)" \ | ||
88 | $(PANDOC_FILTERS) \ | 89 | $(PANDOC_FILTERS) \ |
89 | -o "$@" "$<" | 90 | -o "$@" "$<" |
90 | 91 | ||
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 @@ | |||
35 | 35 | ||
36 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> | 36 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> |
37 | 37 | ||
38 | <link rel="preload" href="/style.css" as="style" /> | 38 | <link rel="preload" href="/style.css?$style_hash$" as="style" /> |
39 | <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 39 | <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
40 | <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 40 | <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
41 | <link rel="preload" href="/GaretVariable.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 41 | <link rel="preload" href="/GaretVariable.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
42 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 42 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
43 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 43 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
44 | 44 | ||
45 | <link rel="stylesheet" href="/style.css" /> | 45 | <link rel="stylesheet" href="/style.css?$style_hash$" /> |
46 | </head> | 46 | </head> |
47 | 47 | ||
48 | <body> | 48 | <body> |