From 257b7616e3a0997f2a5c2766c7923719cf2ca0b5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 17 Nov 2024 16:38:07 -0400 Subject: content: generateTrackReferencedArtworksPage --- src/content/dependencies/generateBackToTrackLink.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/content/dependencies/generateBackToTrackLink.js (limited to 'src/content/dependencies/generateBackToTrackLink.js') diff --git a/src/content/dependencies/generateBackToTrackLink.js b/src/content/dependencies/generateBackToTrackLink.js new file mode 100644 index 00000000..8677d811 --- /dev/null +++ b/src/content/dependencies/generateBackToTrackLink.js @@ -0,0 +1,15 @@ +export default { + contentDependencies: ['linkTrack'], + extraDependencies: ['language'], + + relations: (relation, track) => ({ + trackLink: + relation('linkTrack', track), + }), + + generate: (relations, {language}) => + relations.trackLink.slots({ + content: language.$('trackPage.nav.backToTrack'), + color: false, + }), +}; -- cgit 1.3.0-6-gf8a5