Render a partial that can be overridden to add content to the page
This commit is contained in:
parent
4e0d34413b
commit
25a113128f
3 changed files with 3 additions and 0 deletions
|
@ -134,6 +134,7 @@ $ git clone git@github.com:dzello/reveal-hugo.git themes/reveal-hugo
|
||||||
$ cp -r themes/reveal-hugo/static/reveal static/reveal
|
$ cp -r themes/reveal-hugo/static/reveal static/reveal
|
||||||
$ cp themes/reveal-hugo/layouts/_default/*.reveal.html layouts/_default
|
$ cp themes/reveal-hugo/layouts/_default/*.reveal.html layouts/_default
|
||||||
$ cp themes/reveal-hugo/layouts/shortcodes/* layouts/shortcodes
|
$ cp themes/reveal-hugo/layouts/shortcodes/* layouts/shortcodes
|
||||||
|
$ cp themes/reveal-hugo/layouts/partials/* layouts/partials
|
||||||
```
|
```
|
||||||
|
|
||||||
Next, add the Reveal output format to your site's `config.toml` file
|
Next, add the Reveal output format to your site's `config.toml` file
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ block "main" . }}{{ end }}
|
{{ block "main" . }}{{ end }}
|
||||||
|
{{ partial "reveal-hugo/body" . }}
|
||||||
<script src="{{ "reveal/lib/js/head.min.js" | relURL }}"></script>
|
<script src="{{ "reveal/lib/js/head.min.js" | relURL }}"></script>
|
||||||
<script src="{{ "reveal/js/reveal.js" | relURL }}"></script>
|
<script src="{{ "reveal/js/reveal.js" | relURL }}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
1
layouts/partials/reveal-hugo/body.html
Normal file
1
layouts/partials/reveal-hugo/body.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<!-- override this partial to add content after the slides -->
|
Loading…
Reference in a new issue