I was looking at the newly announced Reveal theme for Hugo and it got me wondering if it would be possible to have multiple themes per site.
I could see a site having a main theme, then a secondary theme such as Reveal just for a sub-directory or matching path.
In this specific case I would have my main theme for all my pages, then specify (in config, or frontmatter maybe) that sub_theme_matching = "/presentations/prez*" would use the Reveal theme. Then paths matching that would use the specified theme.
I don’t have anything to contribute to a multiple themes discussion, but I did want to note it is probably fairly easy to add reveal.js to your site. Themes and sections templates, they are very flexible, so it is possible to load entirely different elements in both design and content, but it doesn’t follow the traditional idea of a “theme”.
You can’t do it with the theme mechanism per se but, you can change the templates however you want, to get whatever look per page or per section etc.
I have a different color for different parts of my site.
I specify which layout using layout: blahblah in frontmatter.
Yes this is possible by creating a custom layout. But it would be much easier on the end user if they could just download a second theme, and add a configuration option.
Thanks for the note. I’d not heard of Reveal before seeing the Hugo Reveal theme.