https://github.com/sagarbehere/dendron-hugo-export/blob/main/process-wikilinks.py
This script
- Searches for
[[Optional label | wikilink.to.some.file]]
in each note (excluding any ‘Backlinks’ section if present) - Replaces each instance with
[Optional label]({{< ref "wikilink/to/some/file.md" >}})
- Or to
/404.html
if target url does not exist (was not exported by the export hierarchy script
- Or to
- Adds an entry to an sqlite database table, named
links
, recording a “from note”/“to note” pair