diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-04 12:51:20 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-04 12:51:20 -0300 |
commit | 3096df0c06a750fc5a09e3bde93c7e524ee2b310 (patch) | |
tree | 669259f0261a682259564de22250df3763a423d8 /src/content/dependencies/image.js | |
parent | 504b464f0904f0e008ee6e886e25c6778a99d479 (diff) | |
parent | 7830c73e6047ab8ec1322c4a56ed6a450bfb11e6 (diff) |
Merge remote-tracking branch 'origin/staging' into data-steps
Diffstat (limited to 'src/content/dependencies/image.js')
-rw-r--r-- | src/content/dependencies/image.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js index 822a8996..f9cb00bf 100644 --- a/src/content/dependencies/image.js +++ b/src/content/dependencies/image.js @@ -45,6 +45,7 @@ export default { thumb: {type: 'string'}, + reveal: {type: 'boolean', default: true}, link: {type: 'boolean', default: false}, lazy: {type: 'boolean', default: false}, square: {type: 'boolean', default: false}, @@ -75,7 +76,12 @@ export default { : originalSrc); const willLink = typeof slots.link === 'string' || slots.link; - const willReveal = originalSrc && !empty(data.contentWarnings); + + const willReveal = + slots.reveal && + originalSrc && + !empty(data.contentWarnings); + const willSquare = slots.square; const idOnImg = willLink ? null : slots.id; |