diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 20:57:06 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-06-26 20:57:06 -0300 |
commit | 08b700bb14e5e12c1dff283e2eef729816a97f15 (patch) | |
tree | 0494ff87d7ede3e0d7f561063c08c74011204486 /src/page/tag.js | |
parent | c6e9aba1f6d1239b3d884c2749d1f0d15c7662a1 (diff) |
lots of fixes from eslint
Diffstat (limited to 'src/page/tag.js')
-rw-r--r-- | src/page/tag.js | 17 |
1 files changed, 1 insertions, 16 deletions
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})` - } - */ ], }; } |