diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-05-21 08:01:14 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-21 08:01:41 -0300 |
commit | dc318c6db0b92510e8297739f4f6999f24859215 (patch) | |
tree | 4982ed4db6512872ac4b59365f1f52301b742f09 /src/content | |
parent | 5c973b488c58a836082d8ae5e48ff42e830d7661 (diff) |
content, url-spec: use static rather than shared, drop cachebust
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 8 | ||||
-rw-r--r-- | src/content/dependencies/image.js | 4 | ||||
-rw-r--r-- | src/content/dependencies/linkExternalAsIcon.js | 2 |
3 files changed, 5 insertions, 9 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js index 9fe868ba..3bb8b00a 100644 --- a/src/content/dependencies/generatePageLayout.js +++ b/src/content/dependencies/generatePageLayout.js @@ -10,7 +10,6 @@ export default { ], extraDependencies: [ - 'cachebust', 'getColors', 'html', 'language', @@ -209,7 +208,6 @@ export default { }, generate(data, relations, slots, { - cachebust, getColors, html, language, @@ -598,7 +596,7 @@ export default { html.tag('link', { rel: 'stylesheet', - href: to('shared.staticFile', 'site.css', cachebust), + href: to('static.path', 'site.css'), }), html.tag('style', [ @@ -608,7 +606,7 @@ export default { ]), html.tag('script', { - src: to('shared.staticFile', 'lazy-loading.js', cachebust), + src: to('static.path', 'lazy-loading.js'), }), ]), @@ -638,7 +636,7 @@ export default { html.tag('script', { type: 'module', - src: to('shared.staticFile', 'client.js', cachebust), + src: to('static.path', 'client.js'), }), ]), ]) diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 822efe3f..617065fc 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -3,7 +3,6 @@ import {empty} from '#sugar'; export default { extraDependencies: [ - 'cachebust', 'checkIfImagePathHasCachedThumbnails', 'getDimensionsOfImagePath', 'getSizeOfImagePath', @@ -82,7 +81,6 @@ export default { }, generate(data, relations, slots, { - cachebust, checkIfImagePathHasCachedThumbnails, getDimensionsOfImagePath, getSizeOfImagePath, @@ -172,7 +170,7 @@ export default { if (willReveal) { reveal = [ html.tag('img', {class: 'reveal-symbol'}, - {src: to('shared.staticFile', 'warning.svg', cachebust)}), + {src: to('static.path', 'warning.svg')}), html.tag('br'), diff --git a/src/content/dependencies/linkExternalAsIcon.js b/src/content/dependencies/linkExternalAsIcon.js index 6f37529e..7f5ea432 100644 --- a/src/content/dependencies/linkExternalAsIcon.js +++ b/src/content/dependencies/linkExternalAsIcon.js @@ -37,7 +37,7 @@ export default { html.tag('title', platformText), html.tag('use', { - href: to('shared.staticIcon', iconId), + href: to('static.icon', iconId), }), ]), |