From 08b700bb14e5e12c1dff283e2eef729816a97f15 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 26 Jun 2022 20:57:06 -0300 Subject: lots of fixes from eslint --- src/page/tag.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/page/tag.js') diff --git a/src/page/tag.js b/src/page/tag.js index 4b2322d..38f7e21 100644 --- a/src/page/tag.js +++ b/src/page/tag.js @@ -17,7 +17,6 @@ export function targets({wikiData}) { } export function write(tag, {wikiData}) { - const {wikiInfo} = wikiData; const {taggedInThings: things} = tag; // Display things featuring this art tag in reverse chronological order, @@ -30,14 +29,12 @@ export function write(tag, {wikiData}) { type: 'page', path: ['tag', tag.directory], page: ({ - generatePreviousNextLinks, getAlbumCover, getGridHTML, getThemeString, getTrackCover, link, language, - to, }) => ({ title: language.$('tagPage.title', {tag: tag.name}), theme: getThemeString(tag.color), @@ -68,7 +65,6 @@ export function write(tag, {wikiData}) { }, nav: generateTagNav(tag, { - generatePreviousNextLinks, link, language, wikiData, @@ -83,13 +79,8 @@ export function write(tag, {wikiData}) { function generateTagNav( tag, - {generatePreviousNextLinks, link, language, wikiData} + {link, language, wikiData} ) { - const previousNextLinks = generatePreviousNextLinks(tag, { - data: wikiData.artTagData.filter((tag) => !tag.isContentWarning), - linkKey: 'tag', - }); - return { linkContainerClasses: ['nav-links-hierarchy'], links: [ @@ -103,12 +94,6 @@ function generateTagNav( tag: link.tag(tag, {class: 'current'}), }), }, - /* - previousNextLinks && { - divider: false, - html: `(${previousNextLinks})` - } - */ ], }; } -- cgit 1.3.0-6-gf8a5