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/artist.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/page/artist.js') diff --git a/src/page/artist.js b/src/page/artist.js index 2e87669..e6160be 100644 --- a/src/page/artist.js +++ b/src/page/artist.js @@ -452,9 +452,9 @@ export function write(artist, {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