Website Summary Files Commits Branches @commit @diff @stats
path: root / layouts / partials
diff options
context:
space:
mode:
Commitea6082d632122e42ad118d514f87665c34ddf6c8 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-08-29 21:02:12 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-08-29 21:02:12 +0300
Files63ecfd5f9be47a14a4eb7823bfe69bd62a5edf08 /layouts/partials
IPL-ea6082d632122e42ad118d514f87665c34ddf6c8.tar
IPL-ea6082d632122e42ad118d514f87665c34ddf6c8.tar.gz
IPL-ea6082d632122e42ad118d514f87665c34ddf6c8.zip
Initial commit
- natrium: e006b529af8bee9422e4b2f8af0c6be4e8b41001 - reveal-hugo: 3bd0dbabe99e13a6c4970bbbfea12b0f084a0d1a
3 files changed, 26 insertions, 0 deletions
-rw-r--r--layouts/partials/reveal-hugo/body.html1
-rw-r--r--layouts/partials/reveal-hugo/head.html1
-rw-r--r--layouts/partials/reveal-hugo/slides.html24
diff --git a/layouts/partials/reveal-hugo/body.html b/layouts/partials/reveal-hugo/body.html
new file mode 100644
index 0000000..f2dd4bf
--- /dev/null
+++ b/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/layouts/partials/reveal-hugo/head.html b/layouts/partials/reveal-hugo/head.html
new file mode 100644
index 0000000..ed1e892
--- /dev/null
+++ b/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/layouts/partials/reveal-hugo/slides.html b/layouts/partials/reveal-hugo/slides.html
new file mode 100644
index 0000000..e578882
--- /dev/null
+++ b/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