Given an archetype directory
├── default.md
└── img
└── index.md
and adding support for another language, I would like *.md
files to be generated for each supported language, that is, index.md
, index.es.md
, etc. instead of just index.md
.
You can do this:
archetypes/
├── img
│ ├── index.es.md
│ └── index.md
Joe, I’m already doing this, but is it DRY?
Yes, in the sense that I don’t have to manually create different language files each time I type hugo new foo
.
… but not quite in a sense that in order to add a language a user must do some extra plumbing.
It’s not a big deal by itself, but when such tiny issues add up, configuring a theme gradually becomes rocket science.