I’m trying to convert a site to HUGO that is rendered to look like a highlighted JSON document but am having issues with getting links to work and not sure if it even is.
The original page is https://reaperworld.com/ but was rendered mostly by hand and I obviously don’t want to do that again.
Looking at the resulting page there are 2 problems I’m not sure how to fix or if it’s even able to be fixed. The first is that the quotes in the JSON are all being turned into entities, including the ones that are escaped in the JSON string attributes.
But then the highlighter also replaces < and > with entities which then just makes things more complicated.
Here’s the email line from the source after | jsonify
Here’s the hugo version of the site where links are rendered as raw text that I am trying to get rendered as actual links, which is why the title of this post asks if this is even possible.
So then I’d have to duplicate everything between the json and the template. It seems like it’d be easier to just use site parameters or something with tokens to be replaced.
Wait, with the string replace, I could just replace shouldn’t we just be able to replace < with < and so on?