Add diagram-only layout support
authorjordanmccullough <jordan@github.com>
Tue, 8 Oct 2013 18:27:03 +0000 (12:27 -0600)
committerjordanmccullough <jordan@github.com>
Tue, 8 Oct 2013 18:35:03 +0000 (12:35 -0600)
_includes/hydeslides/revealjs/slidedeck-diagrams [new file with mode: 0644]
_layouts/hydeslides-revealjs-diagram-only.html [new file with mode: 0644]

diff --git a/_includes/hydeslides/revealjs/slidedeck-diagrams b/_includes/hydeslides/revealjs/slidedeck-diagrams
new file mode 100644 (file)
index 0000000..47df9ba
--- /dev/null
@@ -0,0 +1,30 @@
+<div class="reveal" id="reveal">
+       <div class="slides">
+               {% for ch in page.chapters %}
+                       <!--Nest all chapter's content. Chapters traverse left-right; Sections slide up-down-->
+                       <section>
+                               {% for section in site.tags[ch] reversed %}
+                                       <!--Chapter Auto-Injection-->
+                                       {% if forloop.first %}
+                                               {% if section.cover != false %}
+                                                       {% include hydeslides/revealjs/slide-open-chapter %}
+                                                               <h1>{{ section.chapter }}</h1>
+                                                       {% include hydeslides/revealjs/slide-close %}
+                                               {% endif %}
+                                       {% endif %}
+
+                                       {% for tag in section.tags %}
+                               {% if tag contains "diagram" %}
+                                                       {% include hydeslides/revealjs/slide-open %}
+                                                               <h1 {% if section.heading == false %}class="hidden"{% endif %}>{{ section.chapter }}</h1>
+                                                               <h2 {% if section.heading == false %}class="hidden"{% endif %}>{{ section.title }}</h2>
+                                                               <div class="clear-all"></div>           
+                                                               {{ section.content }}
+                                                       {% include hydeslides/revealjs/slide-close %}
+                               {% endif %}
+                           {% endfor %}
+                               {% endfor %}
+                       </section>
+               {% endfor %}
+       </div>
+</div>
diff --git a/_layouts/hydeslides-revealjs-diagram-only.html b/_layouts/hydeslides-revealjs-diagram-only.html
new file mode 100644 (file)
index 0000000..c02f95f
--- /dev/null
@@ -0,0 +1,21 @@
+---
+
+---
+
+<html>
+       <head>
+               {% include hydeslides/revealjs/head %}
+               <title>{{ page.title }}</title>
+               <!--Style-->
+               <!-- <link rel="stylesheet" href="dependencies/themes/{{ page.theme }}/css/theme.css"> -->
+       </head>
+
+       <body>
+               {% include hydeslides/revealjs/slidedeck-diagrams %}
+               {% include hydeslides/revealjs/scripts %}
+       </body>
+</html>
+
+
+
+