mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-06-07 14:03:33 +02:00
Render a partial that can be overridden to add content to the page
This commit is contained in:
@@ -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 themes/reveal-hugo/layouts/_default/*.reveal.html layouts/_default
|
||||
$ 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
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
</head>
|
||||
<body>
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ partial "reveal-hugo/body" . }}
|
||||
<script src="{{ "reveal/lib/js/head.min.js" | relURL }}"></script>
|
||||
<script src="{{ "reveal/js/reveal.js" | relURL }}"></script>
|
||||
<script>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<!-- override this partial to add content after the slides -->
|
||||
Reference in New Issue
Block a user