+++ title = "plugin-example" description = "Shows how a Reveal.js plugin can be added and used" outputs = ["Reveal"] [reveal_hugo] theme = "night" margin = 0.2 plugins = ["plugin/gallery/gallery.plugin.js"] +++ # plugin-example --- This presentation demonstrates how a Reveal.js plugin can be added. --- The plugin is called [revealjs-simple-gallery](https://github.com/marcins/revealjs-simple-gallery). --- It can make any slide an image gallery. Here are a few examples. --- --- --- --- See the [revealjs-simple-gallery GitHub repo](https://github.com/marcins/revealjs-simple-gallery) to learn about more customization options. --- These were the steps to use this plugin for this reveal-hugo presentation. --- ### 1 Copy the plugin CSS and JavaScript into the static directory --- ### 2 Add the JavaScript file path to the `plugins` field in the front matter --- ### 3 Create a `head.html` partial inside of `layouts/partials/plugin-example/reveal-hugo` --- ### 4 In `head.html`, add a stylesheet link tag that loads the plugin CSS --- ## THE END