« get me outta code hell

sticky cover art (a little wip) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/album.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-06 18:36:04 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-06 18:36:04 -0400
commitc703a9337b9d4d535c0b503f91684a2fbff89e93 (patch)
tree1005f57b1c1577a645e999cca56a1d92574eb082 /src/page/album.js
parentd0059cc2743e785605bb7b34553dd2def528ab5c (diff)
sticky cover art (a little wip)
Diffstat (limited to 'src/page/album.js')
-rw-r--r--src/page/album.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/page/album.js b/src/page/album.js
index f2c35a1..834f52d 100644
--- a/src/page/album.js
+++ b/src/page/album.js
@@ -154,15 +154,20 @@ export function write(album, {wikiData}) {
 
         main: {
           content: [
+            generateStickyHeadingContainer({
+              title: language.$('albumPage.title', {album: album.name}),
+
+              coverSrc: cover,
+              coverAlt: language.$('misc.alt.albumCover'),
+              coverTags: album.artTags,
+            }),
+
             cover && generateCoverLink({
               src: cover,
               alt: language.$('misc.alt.albumCover'),
               tags: album.artTags,
             }),
 
-            generateStickyHeadingContainer(
-              language.$('albumPage.title', {album: album.name})),
-
             html.tag('p',
               {
                 [html.onlyIfContent]: true,