_includes/html/page/layout/custom.liquid in futuro-0.6.9 vs _includes/html/page/layout/custom.liquid in futuro-0.7.0
- old
+ new
@@ -9,14 +9,43 @@
{%- if page.text -%}
<div class="block page-split">
{%- for item in page.text -%}
- {%- if item.o -%}
+
+ <div>
+
+ {%- if item.column -%}
+
<div>
- {{ item.o }}
+ {{ item.column }}
</div>
+
+ {%- elsif item.switch -%}
+
+ {%- for item in item.switch -%}
+
+ {%- if item.before -%}
+ <div class="before">
+ {{ item.before }}
+ </div>
+ {%- elsif item.after -%}
+ <div class="after">
+ {{ item.after }}
+ </div>
+ {%- elsif item.button -%}
+ <div class="button-wrap switch-button {{ page.chapter | downcase }}">
+ <button type="button">Switch</button>
+ <span class="button-bg"></span>
+ </div>
+ {%- endif -%}
+
+ {%- endfor -%}
+
{%- endif -%}
+
+ </div>
+
{%- endfor -%}
</div>
{%- else -%}