Add section about partials in Hugo
This commit is contained in:
parent
804b2d1f6f
commit
f3355351bb
10
README.md
10
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue