diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-22 13:55:49 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-22 13:55:49 -0300 |
commit | 895105507740f4015caa14d7b975b028088114f6 (patch) | |
tree | 141780d38180c1e8774df401fd8afd0fcb06fff2 /src | |
parent | 0bf7106154816c5187fbedb45da08afd915afb65 (diff) |
content: artist alias redirects
Diffstat (limited to 'src')
-rw-r--r-- | src/page/artist-alias.js | 18 | ||||
-rw-r--r-- | src/page/index.js | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/page/artist-alias.js b/src/page/artist-alias.js index f867d123..9e9fdf5b 100644 --- a/src/page/artist-alias.js +++ b/src/page/artist-alias.js @@ -7,15 +7,15 @@ export function targets({wikiData}) { return wikiData.artistAliasData; } -export function write(aliasArtist) { +export function pathsForTarget(aliasArtist) { const {aliasedArtist} = aliasArtist; - const redirect = { - type: 'redirect', - fromPath: ['artist', aliasArtist.directory], - toPath: ['artist', aliasedArtist.directory], - title: () => aliasedArtist.name, - }; - - return [redirect]; + return [ + { + type: 'redirect', + fromPath: ['artist', aliasArtist.directory], + toPath: ['artist', aliasedArtist.directory], + title: () => aliasedArtist.name, + }, + ]; } diff --git a/src/page/index.js b/src/page/index.js index 01c3d2de..311fcd6c 100644 --- a/src/page/index.js +++ b/src/page/index.js @@ -9,7 +9,7 @@ export * as album from './album.js'; export * as artist from './artist.js'; -// export * as artistAlias from './artist-alias.js'; +export * as artistAlias from './artist-alias.js'; // export * as flash from './flash.js'; // export * as group from './group.js'; // export * as homepage from './homepage.js'; |