Simplify diagram-only template
authorjordanmccullough <jordan@github.com>
Tue, 8 Oct 2013 22:05:05 +0000 (16:05 -0600)
committerjordanmccullough <jordan@github.com>
Tue, 8 Oct 2013 23:27:25 +0000 (17:27 -0600)
_includes/hydeslides/revealjs/slidedeck-diagrams

index a9b096c..77b321a 100644 (file)
@@ -1,64 +1,18 @@
 <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-->
-                       
-
-                               {% for section in site.tags[ch] reversed %}
-
-                                       {% assign is_first = forloop.first %}
-                                       {% assign is_last = forloop.last %}
-                                       {% assign cur_ch = section.chapter %}
-
-
-                                       {% for tag in section.tags %}
-
-                                               
-
-                               
-
-                               {% if tag contains "diagram" %}
-
-                                       {% if is_first %}
-                                                               </section>
-                                                               <section>
-                                       {% endif %}
-
-                                       {% if is_first %}
-                                                               {% if section.cover != false %}
-                                                                       {% include hydeslides/revealjs/slide-open-chapter %}
-                                                                               <h1>{{ section.chapter }}</h1>
-
-                                                               
-
-                                                                       {% include hydeslides/revealjs/slide-close %}
-                                                                       {% assign is_first = false %}
-                                                               {% endif %}
-                                                       {% endif %}
-
-                                                       {% 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 %}
-
-                       
-                                                       {% if is_last %}
-                                                               {% include hydeslides/revealjs/slide-open %}
-                                                       Last slide
-                                               {% include hydeslides/revealjs/slide-close %}
-                                       {% endif %}
-
-                               {% endif %}
-
-                               
-                           {% endfor %}
-                               {% endfor %}
-                       
-                       
-
+                       {% for section in site.tags[ch] reversed %}
+                               {% 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 %}
                {% endfor %}
        </div>
 </div>