Add section about partials in Hugo

This commit is contained in:
Sherman K 2018-10-17 11:40:02 -04:00
parent 804b2d1f6f
commit f3355351bb

View file

@ -355,6 +355,16 @@ If you need to add something to the HTML layout, you can create partials that li
This is the recommended way to add custom CSS and JavaScript to each presentation. This is the recommended way to add custom CSS and JavaScript to each presentation.
> 💡 Tip: In Hugo, partials live in the `layouts` folder:
>
> For example, if you have HTML that is to be placed before every presentation, this would be the structure:
> ```
> - layouts
> - partials
> - reveal-hugo
> - head.html
> - body.html
## Recipes ## Recipes
### Add a Reveal.js presentation to an existing Hugo site ### Add a Reveal.js presentation to an existing Hugo site