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

Reveal themes not working? #161

Open
dei-layborer opened this issue Feb 10, 2024 · 4 comments
Open

Reveal themes not working? #161

dei-layborer opened this issue Feb 10, 2024 · 4 comments

Comments

@dei-layborer
Copy link

dei-layborer commented Feb 10, 2024

Hi -- let me first express my gratitude for this Hugo theme. I have a presentation to give before too long and I think it'll be perfect!

I am having an issue, however. For some reason, I can't get any Reveal.js themes (whether from their website or robot-lung) to appear. I've tried both of the following in hugo.toml:

[params.reveal_hugo]
theme = "robot-lung"

and

reveal_hugo.theme = "robot-lung"

In either case, the theme stays on the default (black). I've added reveal-hugo as a module, and it's working otherwise:

theme = ["github.com/dzello/reveal-hugo"]

Am I doing something wrong? I initially thought I'd have to download a theme, but I've tried that as well (grabbing the .css from your repository), also without success.

Any help would be appreciated!

@joshed-io
Copy link
Owner

Hi @dei-layborer, thanks for the gratitude! Glad to hear this theme might be helpful for you. Were you able to get any of the themes working yet?

It's possible that the instructions in the example deck need to be updated. What's on the README is likely to be more up to data, e.g. using a hugo.toml file, etc: https://github.com/dzello/reveal-hugo?tab=readme-ov-file#get-the-reveal-hugo-theme

Sadly I haven't had time to try the latest version but I may have a window of time next week where I could make the updates.

@dei-layborer
Copy link
Author

Unfortunately not. And my issue isn't with getting reveal-hugo to work as a hugo theme, it's with getting any Reveal.js themes to work with reveal-hugo.

So again, putting this in my hugo.toml does not change the Reveal.js theme (i.e. it doesn't change the appearance of the slideshow, even if the slideshow itself is functional):

[params.reveal_hugo]
theme = "robot-lung"

I hope that makes sense, and that you're able to help me figure out what's going on!

@joshed-io
Copy link
Owner

@dei-layborer Got it, thanks for clarifying. Over the weekend I tried both Method 1 and 2 from the docs to see if I could change the (visual) theme. Method 2 worked for me - adding the theme as a submodule. Once I did that, I could change the theme to any themes available in this directory. You'll see this directory in your project at ./themes/reveal-hugo/static/reveal-js/dist/theme. You can make changes to the CSS files in there or add new ones to experiment with changing the theme.

This week I hope to find time to investigate why Method 1 isn't working for this. I haven't used Hugo since modules were introduced so I need to catch up a bit. For now though, this may help get you unblocked.

@dei-layborer
Copy link
Author

Sure, and thanks for looking into it. That works as far as getting themes to work from that directory. That should get me going for the time being. Thank you!

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

2 participants