I’ve grown to like this workflow of mentioning topics before they have a page, and then filling out the most used broken links, to focus on useful ideas. With the previous way broken links were implemented as a command in broken_links.ts, I have made some small changes to make this work nicer for me:
Main features I got from this:
sort by number of mentions
then order by page
see the missing topics as red links so I can fill them out with a click
But while thinking whether I should make a PR, the lightspeed development team already changed it into a template.
I agree that template is more accessible than code and would like to follow, but I can’t think of a way to get this with a query, how could I approach it?
Thanks, this works perfectly! For the record, the new Maintenance page is really good, just thought of this as a good case study. And I did get somehting new — I couldn’t figure out query within query, but templates in templates are the way to go.
Regarding the links not being red, could it be the same issue as showing [[ ]] in table of contents where headers are links?
Yeah, everything “live” is rendered differently than in the (editable parts) of the editor. So effectively I have to implement all that twice. Indeed, reporting issues in GH issues would make it easier to track. Thanks!