diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-08 21:21:16 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-08 21:21:16 -0300 |
commit | 2a6c0f4053d3bf1b774b34e55a1e3de487a1204c (patch) | |
tree | dbd7dc4af65f1c5717448a34eee46860bd20984f /src/page/album.js | |
parent | 860453fa79802768ac0b4e19efa64d0be02ef66c (diff) | |
parent | 725482638dcc96632c3a9cf2b885f4128c50a1c1 (diff) |
Merge branch 'data-steps' of github.com:hsmusic/hsmusic-wiki into data-steps
Diffstat (limited to 'src/page/album.js')
-rw-r--r-- | src/page/album.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/page/album.js b/src/page/album.js index a8e0b59..3b2d02d 100644 --- a/src/page/album.js +++ b/src/page/album.js @@ -55,6 +55,24 @@ export function pathsForTarget(album) { ]; } +export function pathsTargetless({wikiData: {wikiInfo}}) { + return [ + { + type: 'page', + path: ['commentaryIndex'], + contentFunction: {name: 'generateCommentaryIndexPage'}, + }, + + wikiInfo.canonicalBase === 'https://hsmusic.wiki/' && + { + type: 'redirect', + fromPath: ['page', 'list/all-commentary'], + toPath: ['commentaryIndex'], + title: 'Album Commentary', + }, + ]; +} + /* export function write(album, {wikiData}) { const getSocialEmbedDescription = ({ |