reveal-hugo icon indicating copy to clipboard operation
reveal-hugo copied to clipboard

document use of multiple themes

Open ssbarnea opened this issue 4 years ago • 5 comments

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.

ssbarnea avatar Mar 23 '20 16:03 ssbarnea

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).

ccamara avatar Mar 24 '20 15:03 ccamara

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 avatar Mar 24 '20 15:03 ssbarnea

@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.

joshed-io avatar Mar 30 '20 11:03 joshed-io

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.

SamGuay avatar May 13 '20 13:05 SamGuay

I found this document that explains how to have multiple themes in a Hugo site.

https://discourse.gohugo.io/t/two-themes-as-separate-hugo-directories-deployed-to-the-same-website/27899/4

Best regards, Karl

longtimedeveloper avatar May 13 '21 06:05 longtimedeveloper