diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 16:38:07 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 16:39:59 -0400 |
commit | 257b7616e3a0997f2a5c2766c7923719cf2ca0b5 (patch) | |
tree | 366ad2dfca2643c1a0a59b238b98cad0abce0e8f /src/content/dependencies/generateBackToTrackLink.js | |
parent | 9c3da1ff14bf2760a6358bcab1bdc97f012c2b46 (diff) |
content: generateTrackReferencedArtworksPage
Diffstat (limited to 'src/content/dependencies/generateBackToTrackLink.js')
-rw-r--r-- | src/content/dependencies/generateBackToTrackLink.js | 15 |
1 files changed, 15 insertions, 0 deletions
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, + }), +}; |