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

Going online: adding reveal.js presentations to an existing site? #3706

Open
amca01 opened this issue Nov 1, 2024 · 1 comment
Open

Going online: adding reveal.js presentations to an existing site? #3706

amca01 opened this issue Nov 1, 2024 · 1 comment

Comments

@amca01
Copy link

amca01 commented Nov 1, 2024

Hello,

I run a blog using the static engine Hugo, which serves up blog posts as html pages. I'm wondering if it's possible to add reveal.js presentations to that site, so I can access them from the internet, rather than just from my laptop. My presentations are fairly plain - only the plainest of transitions, no fragments, and the only plugins I use are MathJax and a menu plugin. And the material consists of the text, plus some interactive diagrams made with JSXGraph and included as iframes.

Is this a good way of putting presentations online? If not - how do people do that? (I asked a similar question here several days ago which has yet to be answered.)

Thank you very much,
Alasdair

@Martinomagnifico
Copy link
Collaborator

Martinomagnifico commented Nov 2, 2024

Hi Alasdair, if you keep your presentation in a directory, and copy that whole directory to your main blog directory, then it should just work by linking to the index.html in it from your blog. You may want to open the link in a new window. The link itself can be from some text or an image.

Another option is to embed the whole presentation inside your blog. See https://revealjs.com/presentation-size/#embedded for how that works. Your presentation will then be a rectangular part inside your blog page. If you have the option to include the whole HTML of your presentation inside the HTML of the blog post, then that will work.

Now imagine that you are going to do that across multiple blog posts. Then you may want to split your assets so that the main Reveal assets, and any plugins you use, are kept separately from assets that you use for each presentation. That really depends on how you use Hugo as well (I never used it). All in all, that should just work.

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