From 229cf01d2a9c05e1ed9e32f8f0d4a7c074e4caaf Mon Sep 17 00:00:00 2001 From: dzello Date: Thu, 26 Apr 2018 22:48:25 -0700 Subject: [PATCH] Let section presentations use a different theme --- exampleSite/content/example/_index.md | 1 + layouts/_default/baseof.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/example/_index.md b/exampleSite/content/example/_index.md index 4bf1d46..15bfb2c 100644 --- a/exampleSite/content/example/_index.md +++ b/exampleSite/content/example/_index.md @@ -1,5 +1,6 @@ +++ title = "Example of a section presentation" +reveal_theme = "moon" +++ # Section Presentation diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c19cc15..4413ae6 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,7 @@ - {{ $theme := or .Site.Params.reveal_theme "black" }} + {{ $theme := or .Page.Params.reveal_theme .Site.Params.reveal_theme "black" }}