Add use of end.html partial for custom HTML

This commit is contained in:
Sherman K 2018-10-17 11:42:31 -04:00
parent f3355351bb
commit 3006095714

View file

@ -347,11 +347,11 @@ reveal_hugo.custom_theme = "assets/custom-theme.css"
If you need to add something to the HTML layout, you can create partials that live at specific locations, depending on which presentation you want to customize and where you want the HTML inserted into the page.
| Presentation | Before </head> | Before </body> |
|--------------|---------------------------------|---------------------------------|
| All | reveal-hugo/head.html | reveal-hugo/body.html |
| Root | home/reveal-hugo/head.html | home/reveal-hugo/body.html |
| Section | {section}/reveal-hugo/head.html | {section}/reveal-hugo/body.html |
| Presentation | Before </head> | Before </body> | Before closing </div> of `div.reveal` |
|--------------|---------------------------------|---------------------------------|---------------------------------------------|
| All | reveal-hugo/head.html | reveal-hugo/body.html | reveal-hugo/end.html |
| Root | home/reveal-hugo/head.html | home/reveal-hugo/body.html | home/reveal-hugo/end.html |
| Section | {section}/reveal-hugo/head.html | {section}/reveal-hugo/body.html | {section}/reveal-hugo/end.html |
This is the recommended way to add custom CSS and JavaScript to each presentation.
@ -364,6 +364,7 @@ This is the recommended way to add custom CSS and JavaScript to each presentatio
> - reveal-hugo
> - head.html
> - body.html
> - end.html
## Recipes