I’m currently developing a theme to support an image gallery site, with multiple gallery pages, each containing sets of thumbnails linking to individual image pages. My approach has been to declare a ‘gallery/galleries’ taxonomy in the config file, and then have a structure that looks something like:
content gallery gallery1 _index.md image001.md image002.md
The ‘_index.md’ file contains a taxonomy declaration, allowing me to generate menus linking to the various galleries by iterating on hugo’s taxonomy list.
Recent changes to hugo have broken my site (as described here), but while we wait for some resolution – either a bugfix, or a declaration that the breakage was intentional – it occurred to me to wonder whether I’m really doing things “the hugo way”. Is this a good use of taxonomies, or is it contrary to the spirit of how taxonomies are intended to be used in hugo? And if it’s not the right way, is there a better one?