blob: 32e869e13851f3aac2401c9709aa688306cae328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Art tag page specification.
export const description = `per-art-tag gallery pages`;
export function condition({wikiData}) {
return wikiData.wikiInfo.enableArtTagUI;
}
export function targets({wikiData}) {
return wikiData.artTagData.filter((tag) => !tag.isContentWarning);
}
export function pathsForTarget(tag) {
return [
{
type: 'page',
path: ['artTagGallery', tag.directory],
contentFunction: {
name: 'generateArtTagGalleryPage',
args: [tag],
},
},
];
}
|