From 96b504fe08383cfc9a2c474521334e14025cb000 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 2 Aug 2023 13:09:21 -0300 Subject: content: generateListingIndexList: yeet unnecessary color attribute --- src/content/dependencies/generateListingIndexList.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateListingIndexList.js b/src/content/dependencies/generateListingIndexList.js index e4a2f5c7..0d8900e4 100644 --- a/src/content/dependencies/generateListingIndexList.js +++ b/src/content/dependencies/generateListingIndexList.js @@ -1,7 +1,7 @@ import {empty, stitchArrays} from '../../util/sugar.js'; export default { - contentDependencies: ['generateColorStyleVariables', 'linkListing'], + contentDependencies: ['linkListing'], extraDependencies: ['html', 'language', 'wikiData'], sprawl({listingTargetSpec, wikiInfo}) { @@ -19,8 +19,6 @@ export default { !listing.featureFlag || sprawl.wikiInfo[listing.featureFlag])); - query.wikiColor = sprawl.wikiInfo.color; - query.targets = sprawl.listingTargetSpec .filter((target, index) => !empty(targetListings[index])); @@ -34,8 +32,6 @@ export default { relations(relation, query) { return { - wikiColorVariables: relation('generateColorStyleVariables', query.wikiColor), - listingLinks: query.targetListings .map(listings => @@ -109,7 +105,7 @@ export default { class: targetIndex === data.currentTargetIndex && 'current', }, [ - html.tag('summary', {style: relations.wikiColorVariables}, + html.tag('summary', html.tag('span', {class: 'group-name'}, targetTitle)), listingLinkList, -- cgit 1.3.0-6-gf8a5