diff options
author | Volpeon <git@volpeon.ink> | 2022-06-20 18:32:44 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-06-20 18:32:44 +0200 |
commit | cfa66c5ec0fe8d948df16bf3ce17291e9913b2a8 (patch) | |
tree | b206ef9448e6e900703792262f32dc91ed39e5e5 /templates | |
parent | WIP: Hashing all static assets (diff) | |
download | volpeon.ink-cfa66c5ec0fe8d948df16bf3ce17291e9913b2a8.tar.gz volpeon.ink-cfa66c5ec0fe8d948df16bf3ce17291e9913b2a8.tar.bz2 volpeon.ink-cfa66c5ec0fe8d948df16bf3ce17291e9913b2a8.zip |
Add hash to more assets
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 8 | ||||
-rw-r--r-- | templates/layouts/exhibit.html | 6 | ||||
-rw-r--r-- | templates/layouts/page.html | 8 | ||||
-rw-r--r-- | templates/partials/gallery_card.html | 4 | ||||
-rw-r--r-- | templates/partials/grid_card.html | 4 | ||||
-rw-r--r-- | templates/partials/list_card.html | 4 |
6 files changed, 17 insertions, 17 deletions
diff --git a/templates/base.html b/templates/base.html index 4ffd690..6559a56 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> | 42 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> |
43 | 43 | ||
44 | <link rel="preload" href="/style.css?$style_hash$" as="style" /> | 44 | <link rel="preload" href="$assets.style_css$" as="style" /> |
45 | <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 45 | <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
46 | <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 46 | <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
47 | <link rel="preload" href="/IBMPlexSans-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 47 | <link rel="preload" href="/IBMPlexSans-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
@@ -49,7 +49,7 @@ | |||
49 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 49 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
50 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> | 50 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" /> |
51 | 51 | ||
52 | <link rel="stylesheet" href="/style.css?$style_hash$" /> | 52 | <link rel="stylesheet" href="$assets.style_css$" /> |
53 | </head> | 53 | </head> |
54 | 54 | ||
55 | <body itemscope itemtype="https://schema.org/WebPage" class="t-no-js"> | 55 | <body itemscope itemtype="https://schema.org/WebPage" class="t-no-js"> |
@@ -87,8 +87,8 @@ ${layouts/page()} | |||
87 | </div> | 87 | </div> |
88 | </footer> | 88 | </footer> |
89 | 89 | ||
90 | <script src="/main.js"></script> | 90 | <script src="$assets.main_js$"></script> |
91 | <!--script src="/snow.js"></script--> | 91 | <!--script src="$assets.snow_js$"></script--> |
92 | </body> | 92 | </body> |
93 | 93 | ||
94 | </html> | 94 | </html> |
diff --git a/templates/layouts/exhibit.html b/templates/layouts/exhibit.html index 3170305..fcc92a4 100644 --- a/templates/layouts/exhibit.html +++ b/templates/layouts/exhibit.html | |||
@@ -10,13 +10,13 @@ | |||
10 | 10 | ||
11 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--prev o-action-button o-action-button--quiet o-action-button--round"> | 11 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--prev o-action-button o-action-button--quiet o-action-button--round"> |
12 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 12 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
13 | <use href="/icons.svg#chevron-left"></use> | 13 | <use href="$assets.icons_svg$#chevron-left"></use> |
14 | </svg> | 14 | </svg> |
15 | </button> | 15 | </button> |
16 | 16 | ||
17 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--next o-action-button o-action-button--quiet o-action-button--round"> | 17 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--next o-action-button o-action-button--quiet o-action-button--round"> |
18 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 18 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
19 | <use href="/icons.svg#chevron-right"></use> | 19 | <use href="$assets.icons_svg$#chevron-right"></use> |
20 | </svg> | 20 | </svg> |
21 | </button> | 21 | </button> |
22 | 22 | ||
@@ -56,4 +56,4 @@ $body$ | |||
56 | </div> | 56 | </div> |
57 | </main> | 57 | </main> |
58 | 58 | ||
59 | <script src="/lightbox.js"></script> | 59 | <script src="$assets.lightbox_js$"></script> |
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index e40bf4c..53af7e0 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -40,7 +40,7 @@ $body$ | |||
40 | <div class="o-lightbox"> | 40 | <div class="o-lightbox"> |
41 | <button class="o-lightbox__close-btn o-action-button o-action-button--quiet o-action-button--round"> | 41 | <button class="o-lightbox__close-btn o-action-button o-action-button--quiet o-action-button--round"> |
42 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 42 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
43 | <use href="/icons.svg#x"></use> | 43 | <use href="$assets.icons_svg$#x"></use> |
44 | </svg> | 44 | </svg> |
45 | </button> | 45 | </button> |
46 | 46 | ||
@@ -48,13 +48,13 @@ $body$ | |||
48 | 48 | ||
49 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--prev o-action-button o-action-button--quiet o-action-button--round"> | 49 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--prev o-action-button o-action-button--quiet o-action-button--round"> |
50 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 50 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
51 | <use href="/icons.svg#chevron-left"></use> | 51 | <use href="$assets.icons_svg$#chevron-left"></use> |
52 | </svg> | 52 | </svg> |
53 | </button> | 53 | </button> |
54 | 54 | ||
55 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--next o-action-button o-action-button--quiet o-action-button--round"> | 55 | <button class="o-lightbox__nav-btn o-lightbox__nav-btn--next o-action-button o-action-button--quiet o-action-button--round"> |
56 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 56 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
57 | <use href="/icons.svg#chevron-right"></use> | 57 | <use href="$assets.icons_svg$#chevron-right"></use> |
58 | </svg> | 58 | </svg> |
59 | </button> | 59 | </button> |
60 | 60 | ||
@@ -63,4 +63,4 @@ $body$ | |||
63 | </div> | 63 | </div> |
64 | </main> | 64 | </main> |
65 | 65 | ||
66 | <script src="/lightbox.js"></script> | 66 | <script src="$assets.lightbox_js$"></script> |
diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index 40d3495..4aa274a 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html | |||
@@ -26,7 +26,7 @@ $if(it.thumbnail)$ | |||
26 | $endif$ | 26 | $endif$ |
27 | $if(it.icon)$ | 27 | $if(it.icon)$ |
28 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 28 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
29 | <use href="/icons.svg#$it.icon$"></use> | 29 | <use href="$assets.icons_svg$#$it.icon$"></use> |
30 | </svg> | 30 | </svg> |
31 | $endif$ | 31 | $endif$ |
32 | <div class="l-media__block l-media__block--main"> | 32 | <div class="l-media__block l-media__block--main"> |
@@ -51,7 +51,7 @@ $if(it.thumbnail)$ | |||
51 | </div> | 51 | </div> |
52 | $if(it.post_icon)$ | 52 | $if(it.post_icon)$ |
53 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 53 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
54 | <use href="/icons.svg#$it.post_icon$"></use> | 54 | <use href="$assets.icons_svg$#$it.post_icon$"></use> |
55 | </svg> | 55 | </svg> |
56 | $endif$ | 56 | $endif$ |
57 | </div> | 57 | </div> |
diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 8c7ea0a..4120169 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html | |||
@@ -13,7 +13,7 @@ $if(it.url)$ | |||
13 | $endif$ | 13 | $endif$ |
14 | $if(it.icon)$ | 14 | $if(it.icon)$ |
15 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 15 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
16 | <use href="/icons.svg#$it.icon$"></use> | 16 | <use href="$assets.icons_svg$#$it.icon$"></use> |
17 | </svg> | 17 | </svg> |
18 | $endif$ | 18 | $endif$ |
19 | <div class="l-media__block l-media__block--main"> | 19 | <div class="l-media__block l-media__block--main"> |
@@ -38,7 +38,7 @@ $if(it.url)$ | |||
38 | </div> | 38 | </div> |
39 | $if(it.post_icon)$ | 39 | $if(it.post_icon)$ |
40 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 40 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
41 | <use href="/icons.svg#$it.post_icon$"></use> | 41 | <use href="$assets.icons_svg$#$it.post_icon$"></use> |
42 | </svg> | 42 | </svg> |
43 | $endif$ | 43 | $endif$ |
44 | </div> | 44 | </div> |
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index dc9111e..539b7d3 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html | |||
@@ -13,7 +13,7 @@ $if(it.url)$ | |||
13 | $endif$ | 13 | $endif$ |
14 | $if(it.icon)$ | 14 | $if(it.icon)$ |
15 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 15 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
16 | <use href="/icons.svg#$it.icon$"></use> | 16 | <use href="$assets.icons_svg$#$it.icon$"></use> |
17 | </svg> | 17 | </svg> |
18 | $endif$ | 18 | $endif$ |
19 | <div class="l-media__block l-media__block--main u-d-none@sm-hi"> | 19 | <div class="l-media__block l-media__block--main u-d-none@sm-hi"> |
@@ -54,7 +54,7 @@ $if(it.url)$ | |||
54 | $endif$ | 54 | $endif$ |
55 | $if(it.post_icon)$ | 55 | $if(it.post_icon)$ |
56 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 56 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
57 | <use href="/icons.svg#$it.post_icon$"></use> | 57 | <use href="$assets.icons_svg$#$it.post_icon$"></use> |
58 | </svg> | 58 | </svg> |
59 | $endif$ | 59 | $endif$ |
60 | </div> | 60 | </div> |