diff options
author | Andrew Wong <andrew.j.wong@outlook.com> | 2020-10-01 12:46:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 12:46:07 +0300 |
commit | 430396db7a35577717a19e91087537f5c1ff011e (patch) | |
tree | 7ed741cb82ddd615ec7a7c5301bc21900abab0dc | |
parent | f3b85cb66099f0a413d3e6577c14ae560205ee8b (diff) |
Fix paths and toml key names for the custom themes section
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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): |