diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-11-27 22:49:16 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-11-27 22:49:16 -0400 |
commit | 5206ac7188c9eefd6f1d18050e2831b0f10be8ef (patch) | |
tree | 75c0f8ad55cd7771182ba64aa146104e5a5049ef /src/util/link.js | |
parent | fb5859f083687b477b8e65e0e4de56baf4b35a98 (diff) |
redesign & refinements for sticky layouting
Diffstat (limited to 'src/util/link.js')
-rw-r--r-- | src/util/link.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/util/link.js b/src/util/link.js index 9de4c95a..41ac9131 100644 --- a/src/util/link.js +++ b/src/util/link.js @@ -10,7 +10,6 @@ // gener8ting just a8out any link on the site. import * as html from './html.js'; -import {getColors} from './colors.js'; import { Album, @@ -23,7 +22,9 @@ import { Track, } from '../data/things.js'; -export function getLinkThemeString(color) { +export function unbound_getLinkThemeString(color, { + getColors, +}) { if (!color) return ''; const {primary, dim} = getColors(color); @@ -38,7 +39,9 @@ const linkHelper = attr = null, } = {}) => (thing, { + getLinkThemeString, to, + text = '', attributes = null, class: className = '', @@ -187,4 +190,8 @@ const link = { }, }; +export { + unbound_getLinkThemeString as getLinkThemeString, +}; + export default link; |