diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 18:16:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 18:16:18 -0400 |
commit | ec129ac9ce0b143ca4c325108ea66c2d0e7352ff (patch) | |
tree | 0dad7fa2757aa91ed698443d8767722071caed4f /src/content/dependencies/generateBackToAlbumLink.js | |
parent | 6acbc628cb111c53d0b312ab90cd4807ad4bd8d1 (diff) |
content: generate{Album,}ReferencedArtworksPage
Diffstat (limited to 'src/content/dependencies/generateBackToAlbumLink.js')
-rw-r--r-- | src/content/dependencies/generateBackToAlbumLink.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/content/dependencies/generateBackToAlbumLink.js b/src/content/dependencies/generateBackToAlbumLink.js new file mode 100644 index 00000000..6648b463 --- /dev/null +++ b/src/content/dependencies/generateBackToAlbumLink.js @@ -0,0 +1,15 @@ +export default { + contentDependencies: ['linkAlbum'], + extraDependencies: ['language'], + + relations: (relation, track) => ({ + trackLink: + relation('linkAlbum', track), + }), + + generate: (relations, {language}) => + relations.trackLink.slots({ + content: language.$('albumPage.nav.backToAlbum'), + color: false, + }), +}; |