HugoBlox / hugo-blox-builder

🚨 GROW YOUR AUDIENCE WITH HUGOBLOX! 🚀 HugoBlox is an easy, fast no-code website builder for researchers, entrepreneurs, data scientists, and developers. Build stunning sites in minutes. 适合研究人员、企业家、数据科学家和开发者的简单快速无代码网站构建器。用拖放功能、可定制模板和内置SEO工具快速创建精美网站!
https://hugoblox.com/templates/
MIT License
8.2k stars 2.9k forks source link

Using plugins in slides #810

Closed PierreMarchand20 closed 5 years ago

PierreMarchand20 commented 5 years ago

Is there a way to use a reveal.js plugin ? (https://github.com/hakimel/reveal.js/wiki/Plugins,-Tools-and-Hardware)

I guess that we have to somehow add them in the layout slides.

gcushen commented 5 years ago

Several Reveal plugins are already integrated. Which plugin are you interested in?

PierreMarchand20 commented 5 years ago

Well for a particular presentation, I wanted to try diagram-plugin, but I am not asking you to add it to your framework ! I was curious of how flexible it is to use the slide feature in academic. I wonder if it is not easier to host separately the presentations from my webpage to be able to play a little with reveal.js (and then, may be remark.js also)

PS: did you see that I tried to update the documentation ?

gcushen commented 5 years ago

The Reveal initialization can be found in layouts/slides/baseof.html. The file can be overrided to customize.

The diagram-plugin isn't very well maintained. Perhaps adding SVG diagrams is a better solution.

I plan to add some useful shortcodes for slides once I have created and presented a few talks using the new feature.

Thanks for the documentation PR, I'll try to take a look at it when I have time.

PierreMarchand20 commented 5 years ago

Thank you for for answer.

FYI the edit button for the documentation creates a pull request that does not work. (See my pull request).

ChristopherBarrington commented 2 years ago

I am struggling to get 3rd party plugins to work - perhaps the method has changed since this issue was closed?

The plugin I would like to add is a pointer and annotator. I have downloaded the JS and CSS from the plugin and added them to /static/plugins/pointer/pointer.{css,js} then added those in the respective script and link tags of /layouts/slides/baseof.html. In the source of the rendered presentation I can see the links and the files can be accessed.

However, when I activate the plugin in the wowchemy-slides.js script by adding RevealPointer to the array, a blank page is rendered (though the source still has the content, it is just not displayed). If I remove only RevealPointer from the array the slides would be rendered as expected.

Are there additional steps (or have I done something wrong) to:

If it helps, I have the following in my go.mod file, using version 5.3.0.

module github.com/wowchemy/starter-book

go 1.14

require (
  github.com/wowchemy/wowchemy-hugo-modules/v5 v5.3.0
)