I’m in the process of migrating a long page from an old website to Hugo. There are several headings in this page and heading IDs and anchor links are automatically generated by Hugo.
I’m happy with the way anchor links are generated by Hugo, however they’re different from the ones used by the original site. For example example.com/#old_anchor_1
to example.com/#new_anchor_1
We’ll need the original anchors to work while we make this transition. Is it possible to create some sort of mapping specific to anchor links within this page? For example
#old_anchor_1 --> #new_anchor_1
#old_anchor_2 --> #new_anchor_2
.
.
.
I’ve looked at the aliases but it seems to be limited to the page url itself.
NOTE: I’m aware that I can override Hugo’s auto-generated IDs and anchor links, but that’s not what I’m interested in here.