From 5b1418b417c2bac641a8671e7da5cf02aefa6245 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 31 Dec 2021 21:16:59 -0400 Subject: refactor/tweak getGridHTML to use link() fns --- src/page/tag.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/page/tag.js') diff --git a/src/page/tag.js b/src/page/tag.js index 4253120e..791c713d 100644 --- a/src/page/tag.js +++ b/src/page/tag.js @@ -53,9 +53,9 @@ export function write(tag, {wikiData}) { srcFn: thing => (thing.album ? getTrackCover(thing) : getAlbumCover(thing)), - hrefFn: thing => (thing.album - ? to('localized.track', thing.directory) - : to('localized.album', thing.directory)) + linkFn: (thing, opts) => (thing.album + ? link.track(thing, opts) + : link.album(thing, opts)) })} ` -- cgit 1.3.0-6-gf8a5