diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-31 22:47:25 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-01 15:32:26 -0400 |
commit | 7177209bd8b3131f17502fe2bc57dde5d29b331d (patch) | |
tree | 40b44bb522fa45206c8162f487bdadd3706dde87 | |
parent | 7d84bc81c1adc3f712190c36c0b4234db8ba28f7 (diff) |
content: linkTemplate: remove color slot
-rw-r--r-- | src/content/dependencies/linkTemplate.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js index a2448cfe..f17dd1a4 100644 --- a/src/content/dependencies/linkTemplate.js +++ b/src/content/dependencies/linkTemplate.js @@ -5,7 +5,6 @@ import striptags from 'striptags'; export default { extraDependencies: [ 'appendIndexHTML', - 'getColors', 'html', 'language', 'to', @@ -19,13 +18,11 @@ export default { tooltip: {type: 'string'}, attributes: {type: 'attributes'}, - color: {validate: v => v.isColor}, content: {type: 'html'}, }, generate(slots, { appendIndexHTML, - getColors, html, language, to, @@ -53,12 +50,6 @@ export default { attributes.add({href}); } - if (slots.color) { - const {primary, dim} = getColors(slots.color); - attributes.set('style', - `--primary-color: ${primary}; --dim-color: ${dim}`); - } - if (slots.tooltip) { attributes.set('title', slots.tooltip); } |