From f3b85cb66099f0a413d3e6577c14ae560205ee8b Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 1 Oct 2020 19:44:26 +1000 Subject: [PATCH 1/2] Fix example configuration for SCSS theme builder --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cfd051..f37ba52 100644 --- a/README.md +++ b/README.md @@ -459,7 +459,7 @@ This is what the front matter would look like: ```toml [params.reveal_hugo] -reveal_hugo.custom_theme = "stylesheets/custom-theme.css" +reveal_hugo.custom_theme = "stylesheets/custom-theme.scss" reveal_hugo.custom_theme_compile = true ``` From 430396db7a35577717a19e91087537f5c1ff011e Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 1 Oct 2020 19:46:07 +1000 Subject: [PATCH 2/2] Fix paths and toml key names for the custom themes section --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f37ba52..86fef1b 100644 --- a/README.md +++ b/README.md @@ -429,7 +429,7 @@ Then this is what you'll put in `config.toml`: ```toml [params.reveal_hugo] -reveal_hugo.custom_theme = "stylesheets/custom-theme.css" +custom_theme = "stylesheets/custom-theme.css" ``` ### Compiling a custom Reveal.js theme with Hugo pipes @@ -445,8 +445,8 @@ Reveal.js theme customization is easiest to do by overriding variables in the SC If you just wanted to change the presentation colors, here's what you might put in `custom-theme.scss`: ```scss -@import "reveal-js/css/theme/template/mixins"; -@import "reveal-js/css/theme/template/settings"; +@import "../reveal-js/css/theme/template/mixins"; +@import "../reveal-js/css/theme/template/settings"; $backgroundColor: rgb(3, 129, 45); $mainColor: #fff; @@ -459,8 +459,8 @@ This is what the front matter would look like: ```toml [params.reveal_hugo] -reveal_hugo.custom_theme = "stylesheets/custom-theme.scss" -reveal_hugo.custom_theme_compile = true +custom_theme = "stylesheets/custom-theme.scss" +custom_theme_compile = true ``` You can also add options that will be passed to [Hugo's toCSS method](https://gohugo.io/hugo-pipes/scss-sass/#options):