Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / reveal-hugo / exampleSite / content / plugin-example
diff options
context:
space:
mode:
Commitef61dad03b5d0fe12479d9d034589969ad302cfd (patch)
Author
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-16 08:38:04 +0300
Committer
 Dimitar Trendafilov <trendafilov.dn@gmail.com>
2020-08-16 08:38:04 +0300
Files7e19b3407468662655ab2a67a91d775200d0a35b /website/themes/reveal-hugo/exampleSite/content/plugin-example
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.tar
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.tar.gz
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.zip
Parent17a5d33201b35b875bde1a0b0b31ef68ba8a2350 (diff)
Parentad823cc4d72edbab10f0dadf99b30df91c3f7c50 (diff)
Merge commit 'ad823cc4d72edbab10f0dadf99b30df91c3f7c50' as 'website/themes/reveal-hugo'
diff --git a/website/themes/reveal-hugo/exampleSite/content/plugin-example/_index.md b/website/themes/reveal-hugo/exampleSite/content/plugin-example/_index.md
new file mode 100644
index 0000000..507eb5a
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/plugin-example/_index.md
@@ -0,0 +1,83 @@
++++
+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.
+
+---
+
+<ul class="gallery">
+ <li><img src="sample1.jpg" alt="Default settings (Photo by Oscar Fernandez Alonso on Flickr)"></li>
+ <li><img src="sample2.jpg" alt="Default settings (Photo by bullcitydogs on Flickr)"></li>
+ <li><img src="sample3.jpg" alt="Default settings (Photo by Lance McCord on Flickr)"></li>
+</ul>
+
+---
+
+<ul class="gallery" data-iterations="0" data-interval="1">
+ <li><img src="sample1.jpg" alt="Infinite iterations, fast transition (Photo by Oscar Fernandez Alonso on Flickr)"></li>
+ <li><img src="sample2.jpg" alt="Infinite iterations, fast transition (Photo by bullcitydogs on Flickr)"></li>
+ <li><img src="sample3.jpg" alt="Infinite iterations, fast transition (Photo by Lance McCord on Flickr)"></li>
+</ul>
+
+---
+
+<ul class="gallery" data-iterations="2" data-interval="2" data-mode="full-screen">
+ <li><img src="sample1.jpg" alt="Full screen, two iterations, slow transition (Photo by Oscar Fernandez Alonso on Flickr)"></li>
+ <li><img src="sample2.jpg" alt="Full screen, two iterations, slow transition (Photo by bullcitydogs on Flickr)"></li>
+ <li><img src="sample3.jpg" alt="Full screen, two iterations, slow transition (Photo by Lance McCord on Flickr)"></li>
+</ul>
+
+---
+
+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 \ No newline at end of file
diff --git a/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample1.jpg b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample1.jpg
new file mode 100644
index 0000000..497d5d1
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample1.jpg
Binary files differ
diff --git a/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample2.jpg b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample2.jpg
new file mode 100644
index 0000000..a62dbdf
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample2.jpg
Binary files differ
diff --git a/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample3.jpg b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample3.jpg
new file mode 100644
index 0000000..dad2884
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/plugin-example/sample3.jpg
Binary files differ