Zola check - "links in the template files are not checked". Why not?

Hello!

From CLI usage | Zola

zola check only checks the links in md files and not the links in template files.

Why not?

I mean .html template files can have dead links.

Thanks!

Because you would need to parse HTML to retrieve all the <a>/<img> etc tags.
It could be added as a step after checking the links in Markdown where we parse each HTML output file for those.
In practice there will only be a few links that are in templates only and it would be obvious if it’s missing (eg JS/CSS CDN link) - not sure it’s worth the hassle and the perf loss.

2 Likes

Thanks! Makes sense :slight_smile: