{% capture api %} Render `
` content and eventually the sidebar. Split content by `` and `` and loop to render. - **Called by** `_layouts/default.html` - **Call** `_includes/page/sidebar.html` {% endcapture %} {%- include api/save.html -%}
{%- comment -%} Check sidebar left {%- endcomment -%} {% if sidebar.side == 'left' %}
{% include page/sidebar.html %}
{% elsif sidebar.side == 'right' %}
{% endif %} {%- comment -%} Loop rows {%- endcomment -%} {% assign rows = content | split: "" %} {%- for row in rows -%}
{% assign j = forloop.index0 %} {%- comment -%} Loop columns {%- endcomment -%} {%- assign columns = row | split: "" -%} {%- for column in columns -%}
{%- comment -%} Render column {%- endcomment -%} {% assign column_live = rows[j] | split: "" %} {{ column_live[forloop.index0] | strip }}
{% endfor %}
{%- endfor -%} {%- comment -%} Check sidebar right {%- endcomment -%} {% if sidebar.side == 'right' %}
{% include page/sidebar.html %}
{% elsif sidebar.side == 'left' %}
{% endif %}