diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-08 20:11:26 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-28 17:14:14 -0400 |
commit | fbd872a7cb3ac2ed788e635f6d30af4e1158c6f9 (patch) | |
tree | 671262e964d6d235b68add68fdc80675ecae0548 | |
parent | 76756c4762a186536901a249fe40ae60867ba2ab (diff) |
content: generatePageLayout: make #cover-art-container here
-rw-r--r-- | src/content/dependencies/generateCoverArtwork.js | 2 | ||||
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/content/dependencies/generateCoverArtwork.js b/src/content/dependencies/generateCoverArtwork.js index 76db16da..a830d121 100644 --- a/src/content/dependencies/generateCoverArtwork.js +++ b/src/content/dependencies/generateCoverArtwork.js @@ -44,7 +44,7 @@ export default { generate(relations, slots, {html, language}) { switch (slots.mode) { case 'primary': - return html.tag('div', {id: 'cover-art-container'}, [ + return html.tags([ relations.image.slots({ path: slots.path, alt: slots.alt, diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js index 1591223a..e4c02fb2 100644 --- a/src/content/dependencies/generatePageLayout.js +++ b/src/content/dependencies/generatePageLayout.js @@ -258,7 +258,11 @@ export default { }, [ titleHTML, - slots.cover, + html.tag('div', { + [html.onlyIfContent]: true, + id: 'cover-art-container', + }, slots.cover), + slots.additionalNames, html.tag('div', |