diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-06 20:07:03 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-24 15:51:50 -0300 |
commit | 84686df07e1029bcad91b9fda47b6f3bd280ee56 (patch) | |
tree | 5aa10d8fd2ec6dd22eaed6140ec5f22f9bfda098 /src/content/dependencies | |
parent | 424cb392d3a4fc2f7b47b68de30378fc5abf1321 (diff) |
content: generateCoverArtwork: mode commentary
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generateCoverArtwork.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js index 4060c6b0..385385e3 100644 --- a/src/content/dependencies/generateCoverArtwork.js +++ b/src/content/dependencies/generateCoverArtwork.js @@ -32,7 +32,7 @@ export default { }, mode: { - validate: v => v.is('primary', 'thumbnail'), + validate: v => v.is('primary', 'thumbnail', 'commentary'), default: 'primary', }, }, @@ -73,6 +73,18 @@ export default { square: true, }); + case 'commentary': + return relations.image + .slots({ + path: slots.path, + alt: slots.alt, + thumb: 'medium', + class: 'commentary-art', + reveal: true, + link: true, + square: true, + }); + default: return html.blank(); } |