« get me outta code hell

content, css: select .image instead of img - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/image.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-11 08:52:42 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-11 18:07:59 -0400
commitd27ceb4165cd41ae5caec663514d00e74d50302e (patch)
treebb177ef485a3e966e1c647e32743a02774b5a53d /src/content/dependencies/image.js
parent3b3b16c0a0a2c4a244ed21f12592097324b05bdf (diff)
content, css: select .image instead of img
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r--src/content/dependencies/image.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index 2876bad..6d58bd2 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -127,6 +127,8 @@ export default {
     const willSquare = slots.square;
 
     const imgAttributes = html.attributes([
+      {class: 'image'},
+
       slots.alt && {alt: slots.alt},
       slots.width && {width: slots.width},
       slots.height && {height: slots.height},