From 25a113128f5d2ba141ac8d5c40628e08945e9748 Mon Sep 17 00:00:00 2001 From: dzello Date: Fri, 27 Apr 2018 23:09:28 -0700 Subject: [PATCH] Render a partial that can be overridden to add content to the page --- README.md | 1 + layouts/_default/baseof.reveal.html | 1 + layouts/partials/reveal-hugo/body.html | 1 + 3 files changed, 3 insertions(+) create mode 100644 layouts/partials/reveal-hugo/body.html diff --git a/README.md b/README.md index 6470efd..73b7aaf 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ $ git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo $ cp -r themes/reveal-hugo/static/reveal static/reveal $ cp themes/reveal-hugo/layouts/_default/*.reveal.html layouts/_default $ cp themes/reveal-hugo/layouts/shortcodes/* layouts/shortcodes +$ cp themes/reveal-hugo/layouts/partials/* layouts/partials ``` Next, add the Reveal output format to your site's `config.toml` file diff --git a/layouts/_default/baseof.reveal.html b/layouts/_default/baseof.reveal.html index 4d221a6..2241460 100644 --- a/layouts/_default/baseof.reveal.html +++ b/layouts/_default/baseof.reveal.html @@ -27,6 +27,7 @@ {{ block "main" . }}{{ end }} + {{ partial "reveal-hugo/body" . }}