Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document use of multiple themes #79

Open
ssbarnea opened this issue Mar 23, 2020 · 5 comments
Open

document use of multiple themes #79

ssbarnea opened this issue Mar 23, 2020 · 5 comments

Comments

@ssbarnea
Copy link

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.

@ccamara
Copy link
Contributor

ccamara commented Mar 24, 2020

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

@ssbarnea
Copy link
Author

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.

@joshed-io
Copy link
Owner

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

@SamGuay
Copy link

SamGuay commented May 13, 2020

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.

@longtimedeveloper
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants