From cb379596c5cbaeb98480cc727ea6639d938e28d9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 11 Jan 2024 08:53:40 -0400 Subject: content, css: reveal-heading -> reveal-symbol, use warning icon --- src/content/dependencies/image.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 6d58bd23..7ef50e5b 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -3,6 +3,7 @@ import {empty} from '#sugar'; export default { extraDependencies: [ + 'cachebust', 'checkIfImagePathHasCachedThumbnails', 'getDimensionsOfImagePath', 'getSizeOfImagePath', @@ -71,6 +72,7 @@ export default { }, generate(data, relations, slots, { + cachebust, checkIfImagePathHasCachedThumbnails, getDimensionsOfImagePath, getSizeOfImagePath, @@ -186,8 +188,8 @@ export default { let reveal = null; if (willReveal) { reveal = [ - html.tag('span', {class: 'reveal-heading'}, - language.$('misc.contentWarnings.heading')), + html.tag('img', {class: 'reveal-symbol'}, + {src: to('shared.staticFile', 'warning.svg', cachebust)}), html.tag('br'), -- cgit 1.3.0-6-gf8a5