{% assign tabs-count = include.count | default: 3 %} {% assign id = include.id | default: 'top' %} {% assign tabs = (1..tabs-count) %} {% capture tabs-html %} {% endcapture %} {% capture tabs-content-html %}
{% for tab in tabs %}
Content of tab #{{ tab }}

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci, alias aliquid distinctio dolorem expedita, fugiat hic magni molestiae molestias odit.

{% endfor %}
{% endcapture %}
{% if include.bottom %} {{ tabs-content-html }} {{ tabs-html }} {% else %} {{ tabs-html }} {{ tabs-content-html }} {% endif %}