diff options
Diffstat (limited to 'src/content/dependencies/linkExternal.js')
-rw-r--r-- | src/content/dependencies/linkExternal.js | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/content/dependencies/linkExternal.js b/src/content/dependencies/linkExternal.js index 70e1ccff..16990023 100644 --- a/src/content/dependencies/linkExternal.js +++ b/src/content/dependencies/linkExternal.js @@ -27,14 +27,12 @@ export default { generate: (data, slots, {html, language}) => html.tag('a', - { - href: data.url, - class: 'nowrap', - target: - (slots.tab === 'separate' - ? '_blank' - : null), - }, + {class: 'nowrap'}, + {href: data.url}, + + slots.tab === 'separate' && + {target: '_blank'}, + language.formatExternalLink(data.url, { style: slots.style, context: slots.context, |