Hi folks, I’m working through getting my Hugo installation to output gemini protocol compatible pages. I’m not the first, but things have moved on a bunch in the Hugo world in the past few years, and lots seems easier!
One thing I’m struggling with is that {{ .RelPermalink }} links to pages always include the “ugly” suffix rather than omitting it (eg. /posts/kebab-title/index.gmi is produced, instead of /posts/kebab-title/.)
My gemini server (agate) supports delivering index.gmi if a directory is requested, like many HTTP servers — I’d like to take advantage of this! The HTML site that’s built alongside the gemini one works as expected ({{ .RelPermalink }} references point to /posts/kebab-title/ not /posts/kebab-title/index.html), so I’m not sure what I’m missing.
I think I’ve configured the output type correctly, but I have a hunch I’m missing a config option somewhere, and I can’t find the reference in the docs anywhere. I’ve configured the output format like this:
To clarify, this is not related to the uglyURLs setting in root of the site configuration, nor it is related to the ugly or noUgly setting for a given output format.