diff options
Moved site to website folder
3 files changed, 26 insertions, 0 deletions
| -rw-r--r-- | website/layouts/partials/reveal-hugo/body.html | 1 | ||||
| -rw-r--r-- | website/layouts/partials/reveal-hugo/head.html | 1 | ||||
| -rw-r--r-- | website/layouts/partials/reveal-hugo/slides.html | 24 |
diff --git a/website/layouts/partials/reveal-hugo/body.html b/website/layouts/partials/reveal-hugo/body.html new file mode 100644 index 0000000..f2dd4bf --- /dev/null +++ b/website/layouts/partials/reveal-hugo/body.html @@ -0,0 +1 @@ +<!-- override this partial to add content before the body tag closes -->
\ No newline at end of file diff --git a/website/layouts/partials/reveal-hugo/head.html b/website/layouts/partials/reveal-hugo/head.html new file mode 100644 index 0000000..ed1e892 --- /dev/null +++ b/website/layouts/partials/reveal-hugo/head.html @@ -0,0 +1 @@ +<!-- override this partial to add content before the head tag closes -->
\ No newline at end of file diff --git a/website/layouts/partials/reveal-hugo/slides.html b/website/layouts/partials/reveal-hugo/slides.html new file mode 100644 index 0000000..e578882 --- /dev/null +++ b/website/layouts/partials/reveal-hugo/slides.html @@ -0,0 +1,24 @@ +<div class="reveal"> + <!-- Any section element inside of this container is displayed as a slide --> + <div class="slides"> + <!-- Use the array of pages passed as a param --> + {{ range . -}} + <!-- Don't process empty content files --> + {{- if ne (len .Content) 0 -}} + <!-- Remove the <hr /> tag generated by blackfriday for footnotes --> + {{- $content := replace .Content "<div class=\"footnotes\">\n\n<hr />" "<div class=\"footnotes\">" -}} + <!-- Split the processed content by <hr /> tag --> + {{- range (split $content "<hr />") -}} + <!-- Only wrap in <section> tag if not already wrapped by shortcode --> + {{- if in . "data-noprocess" -}} +{{- . | safeHTML -}} + {{- else }} +<section> + {{- . | safeHTML }} +</section> + {{- end -}} + {{- end -}} + {{- end -}} + {{- end }} + </div> +</div>
\ No newline at end of file |
