I’m trying to set up a template path that allows me to easily view and debug content associated with a post.
What I want is to have two pages for each post
-
/2023/08/08/slug.html
- the content of the post -
/debug/2023/08/08/slug.html
- debug info for the post
I’ve verified this works in Hugo (0.91.0) on my local machine by updating the config to include new mediaType
and outputFormats
params and adding the new output format for pages.
{
…
"mediaTypes": {
"application/json": {
"suffixes": [
"json"
]
},
"text/debug": {
"suffixes": [
"debug.html"
]
}
},
"outputFormats": {
"DEBUG": {
"name": "DEBUG",
"mediaType": "text/debug",
"path": "debug",
"isHTML": true
},
…
},
"outputs": {
…
"page": [
"HTML",
"DEBUG"
]
…
}
}
On my local install if inspect the output formats on a post, I can see permalinks for the HTML URL and the corresponding debug URL, but publishing the same code to Micro.blog only shows the permalink for the HTML format.
How can I accomplish this on Micro.blog? Is there only a subset of the Hugo config options that can customized?