From a1bfa1d0d68890ebd5811bd46455d10be4bbc17d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 4 Oct 2023 13:16:50 -0300 Subject: support art tag info pages; ensure "art tag" terminology everywhere --- src/page/art-tag.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/page/art-tag.js (limited to 'src/page/art-tag.js') diff --git a/src/page/art-tag.js b/src/page/art-tag.js new file mode 100644 index 00000000..32e869e1 --- /dev/null +++ b/src/page/art-tag.js @@ -0,0 +1,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], + }, + }, + ]; +} -- cgit 1.3.0-6-gf8a5