diff options
Diffstat (limited to 'src')
-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); } |