reveal-hugo
reveal-hugo copied to clipboard
document use of multiple themes
I think that it would worth documenting a solution for creating presentations for people that already have a site using hugo.
For example, I have website using another theme, one aimed for blogs or personal websites but I do want to also publish some reveal presentations as part of my website.
These would likely fit well under a custom archetype named slide
or presentation
but so far I was unable to make the theming work as I was not able to keep my website theme and still be able to produce the reveal presentations.
Even pointing to an existing implementation would count as a valid documentation for this use case.
At this moment the only solution I know would be to create multiple sites, which is clearly creating additional maintenance issues.
That would be great, indeed. Unfortunately, that would require to have more than one theme at a time (one for default content and another one for either a specific content type or through content's metadata) and AFAIK, hugo does not support that feature (yet).
In fact hat is not fully true, hugo allows you to specify a list of themes as theme
property. Still, what happens when you do this is a bit unclear to me as it seems to do some kind of overlapping of these themes.
@ssbarnea Check out the docs here: https://github.com/dzello/reveal-hugo#add-a-revealjs-presentation-to-an-existing-hugo-site
These were written a while ago (probably before Hugo had multiple themes) so it might be out of date. Happy to see what the delta is and get it updated, I would like to support this use case.
Hi, just to let you know that I'm currently using the Academic theme which has integrated the reveal.js presentation into its theme. It is pretty much the same afaik. Here's the demo presentation you can find on this page. Vertical slides weren't enabled and I simply pasted reveal-hugo section.html shortcode, and everything has been working fine so far.
If you look into this theme, you'll get how to implement it in your own theme.
I found this document that explains how to have multiple themes in a Hugo site.
Best regards, Karl