Refactoring an ox-hugo site for newer orgmode

On newer versions of orgmode (i.e. anything 9.7 or newer) something upstream breaks the manner in which ox-hugo handles links for sub-tree exports 1 . The most robust workaround is to stop using native Org links and switch to a manual Hugo short-code via an Org macro. The process has two parts. First, we need the relref macro in the Org file with #+macro: relref @@hugo:[$1]({< relref "$2" >})@@ 2…