Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / reveal-hugo / exampleSite / content / template-example / _index.md
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/template-example/_index.md
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.tar
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.tar.gz
IPL-ef61dad03b5d0fe12479d9d034589969ad302cfd.zip
Parent17a5d33201b35b875bde1a0b0b31ef68ba8a2350 (diff)
Parentad823cc4d72edbab10f0dadf99b30df91c3f7c50 (diff)
Merge commit 'ad823cc4d72edbab10f0dadf99b30df91c3f7c50' as 'website/themes/reveal-hugo'
1 files changed, 45 insertions, 0 deletions
-rw-r--r--website/themes/reveal-hugo/exampleSite/content/template-example/_index.md45
diff --git a/website/themes/reveal-hugo/exampleSite/content/template-example/_index.md b/website/themes/reveal-hugo/exampleSite/content/template-example/_index.md
new file mode 100644
index 0000000..5b1ec68
--- /dev/null
+++ b/website/themes/reveal-hugo/exampleSite/content/template-example/_index.md
@@ -0,0 +1,45 @@
++++
+title = "Template presentation"
+outputs = ["Reveal"]
+[reveal_hugo]
+theme = "night"
+margin = 0.2
+[reveal_hugo.templates.blue]
+background = "#0011DD"
+transition = "zoom"
++++
+
+## Template Example
+
+---
+
+This presentation shows how to take advantage of reveal-hugo's slide template feature.
+
+---
+
+Slide templates let you specify groups of slide attributes in one place and reuse them throughout the presentation.
+
+---
+
+{{< slide template="blue" >}}
+
+Here's an example of using a template called `blue`, defined in the front matter of this presentation's `_index.md` file.
+
+---
+
+The template can contain any valid slide customization params:
+
+```toml
+[reveal_hugo.templates.blue]
+background = "#0011DD"
+transition = "zoom"
+```
+
+---
+
+Then add it to any slide using the slide shortcode:
+
+```
+{{</* slide template="blue" */>}}
+```
+