diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:03:16 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:03:16 -0300 |
commit | 044ac1a804e0f42aaa13a9280ba68effc7a65606 (patch) | |
tree | cd6df28a76822c46cac9976781014edc98c8d41a /src/content | |
parent | a3b80f08fc54cda6a6787bcd078059823026add6 (diff) | |
parent | 0ff743b1350b1d42ba23d9701a0b7acfb7501254 (diff) |
Merge branch 'preview' into track-data-cleanup
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/linkTemplate.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/linkTemplate.js b/src/content/dependencies/linkTemplate.js index 1cf64c59..ba7c7cda 100644 --- a/src/content/dependencies/linkTemplate.js +++ b/src/content/dependencies/linkTemplate.js @@ -29,14 +29,16 @@ export default { language, to, }) { - let href = slots.href; + let href; let style; let title; - if (href) { - href = encodeURI(href); + if (slots.href) { + href = encodeURI(slots.href); } else if (!empty(slots.path)) { href = to(...slots.path); + } else { + href = ''; } if (appendIndexHTML) { |