> hugo version
Hugo Static Site Generator v0.20.2 windows/amd64 BuildDate: 2017-04-16T11:19:32-04:00
I would like to dynamically generate some property values as an output with “properties” suffix. So far, I have added new media type and output format as follows in config.toml
*.properties is not a recognized INPUT format in Hugo (md, asciidoc etc.). I have seen it before that people get confused by this re. the new OUTPUT format feature. I see that we should probably do better in this area (with other textual INPUT formats with front matter), but that is currently not the case.
You could also set the full URL in some front matter, I guess.
To add to this, I would recommend you create a completely new MIME type (media type) and not redefine text/plain, but I guess up to you. To get something else in “index.properties” you can set the BaseName on the output format definition.
Awesome! I’ve created new MIME type ‘text/properties’ and have ‘uglyurls = true’ in config.toml, both URLs that you suggested automagically worked. Thanks for your help.