From ec129ac9ce0b143ca4c325108ea66c2d0e7352ff Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 17 Nov 2024 18:16:18 -0400 Subject: content: generate{Album,}ReferencedArtworksPage --- src/content/dependencies/generateBackToAlbumLink.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/content/dependencies/generateBackToAlbumLink.js (limited to 'src/content/dependencies/generateBackToAlbumLink.js') 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, + }), +}; -- cgit 1.3.0-6-gf8a5