diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-04-12 13:20:32 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-04-12 13:20:32 -0300 |
commit | 3a5b49cf3a10702c0dae1190c9baabd8a2c2ef3b (patch) | |
tree | c7a1ac0d4c2096733fd3fdfdc549f5695a78532e /src/content/dependencies/linkAlbum.js | |
parent | b8394a89d31da72ef7d2086a1088a29e68df4edc (diff) |
content: stub track page, misc. other changes
* generateContributionLinks replaced with linkContribution, tests still need updating * album pages respect albums without cover art * track pages without unique art inherit art tags from album (fixes #13) not heavily tested, this commit probably breaks some pages which were loading correctly before
Diffstat (limited to 'src/content/dependencies/linkAlbum.js')
-rw-r--r-- | src/content/dependencies/linkAlbum.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkAlbum.js b/src/content/dependencies/linkAlbum.js new file mode 100644 index 0000000..36b0d13 --- /dev/null +++ b/src/content/dependencies/linkAlbum.js @@ -0,0 +1,8 @@ +export default { + contentDependencies: ['linkThing'], + + relations: (relation, album) => + ({link: relation('linkThing', 'localized.album', album)}), + + generate: (relations) => relations.link, +}; |