{% if PageIsChapter %}

  <div class="area {{ PageBook | prepend : 'book-' }} {{ PageType }} {{ PageChapter | prepend : 'chapter-' }}
              {% if site.setup.style %}{{ SiteStyle }}{% endif %}">

  {% unless SiteIsDocs %}

    <h2>{{ page.weight | slice: 0,3 }}</h2>

  {% endunless %}

{% else %}

  {% unless SiteIsDocs %}

    {% include {{ SitePage | append : 'subtitle.liquid' }} %}

  {% endunless %}

  <div class="area {{ PageType }} {{ SiteStyle }} {{ PageTitle | prepend : 'title-' }}
              {% unless NoSubtitle %}has-subtitle{% endunless %}
              {% if page.row %} has-row {% endif %}
              {% if page.pies %}is-pie{% endif %}">

{% endif %}

{% unless SiteIsDocs %}

  {{ page.content | markdownify }}

{% endunless %}

{% unless PageIsChapter %}

  {% include {{ SiteContent | append : 'more.liquid' }} %}

  {% unless SiteIsDocs %}

    {% include {{ SitePage | append : 'util.liquid' }} %}
    
  {% endunless %}

  {% if page.break %}

    {% for i in (1..page.break) %}<br>{% endfor %}

  {% endif %}

  {% if page.alert %}

    {% include {{ ContentLoop | append : 'alert.liquid' }} 
                  title = page.alert.title
                  type  = page.alert.type 
                  price = page.alert.price %}

  {% endif %}

  {% if page.chart %}

    {% include {{ SiteContent | append : 'chart.liquid' }} %}

  {% endif %}

  {% if page.number %}

    <div class="block number-container">

      {% include {{ SiteContent | append : 'loop.liquid' }} type="number" %}

    </div>

  {% endif %}

  {% if page.pies %}

    <ul class="list pies style-spin">

      {% include {{ SiteContent | append : 'loop.liquid' }} type="pies" %}

    </ul>

  {% endif %}

  {% if page.roller %}

    {% include {{ SiteContent | append : 'roller.liquid' }} %}

  {% endif %}

  {% if page.form %}

    <form onsubmit="return false">

      {% include {{ SiteContent | append : 'loop.liquid' }} type="form" %}

    </form>

  {% endif %}

  {% if page.header %}

    {% include {{ SiteContent | append : 'header.liquid' }} %}

  {% endif %}

  {% if page.screen %}

  <div class="block screen-container">

    <div class="block screen-wrap">

      {% include {{ LoopScreen | append : 'header.liquid' }} %}

      {% include {{ LoopScreen | append : 'feed.liquid' }} type="feed" %}

      {% include {{ LoopScreen | append : 'feed.liquid' }} type="clone" %}

    </div>

  </div>

  {% endif %}

  {% if page.loader %}

    {% include {{ SiteContent | append : 'loader.liquid' }} %}

  {% endif %}

  {% if page.ticker %}

    {% include {{ ContentLoop | append : 'onemoment.liquid' }} 
                  ticker = page.ticker %}

  {% endif %}

  {% if page.button %}

    {% include {{ LoopButton | append : 'example.liquid' }} %}

  {% endif %}

  {% if page.row %}

    {% include {{ SiteContent | append : 'row.liquid' }} %}

  {% endif %}

  {% if page.checkbox %}

    {% include {{ ContentLoop | append : 'checkbox.liquid' }} 
                  label = page.checkbox.label 
                  small = page.checkbox.small %}

  {% endif %}

  {% if SiteIsDocs %}

    {% if page.content %}

      {% assign length = page.content | size %}

      {% if length > 1 %}

        <div class="area type-content">

          {{ page.content | markdownify }}

        </div>

      {% endif %}

    {% endif %}

  {% endif %}

{% endunless %}