diff options
2 files changed, 0 insertions, 61 deletions
| -rw-r--r-- | exampleSite/content/template-example/_index.md | 45 | ||||
| -rw-r--r-- | exampleSite/content/template-example/continued.md | 16 |
diff --git a/exampleSite/content/template-example/_index.md b/exampleSite/content/template-example/_index.md deleted file mode 100644 index 5b1ec68..0000000 --- a/exampleSite/content/template-example/_index.md +++ /dev/null @@ -1,45 +0,0 @@ -+++ -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" */>}} -``` - diff --git a/exampleSite/content/template-example/continued.md b/exampleSite/content/template-example/continued.md deleted file mode 100644 index 85ac367..0000000 --- a/exampleSite/content/template-example/continued.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -+++ - -{{< slide template="grey" >}} - -Templates can be specified in `config.toml` as well, for reusability across multiple presentations. - -``` -[params.reveal_hugo.templates.grey] -background = "#424242" -transition = "convex" -``` - ---- - -## THE END
\ No newline at end of file |
