fix: skip the loop when deadlinks are ignored

pull/4870/head
Bojan Rajh 4 months ago
parent 1f9093e129
commit c6af3d5ea3
No known key found for this signature in database
GPG Key ID: FC81BE9B7B6AA42A

@ -195,7 +195,8 @@ export async function createMarkdownToVueRenderFn(
})
}
if (links) {
const { ignoreDeadLinks = true } = siteConfig
if (links && ignoreDeadLinks !== true) {
const dir = path.dirname(file)
for (let url of links) {
const { pathname } = new URL(url, 'http://a.com')

Loading…
Cancel
Save