Sha256: e83277e06159bc0e3dc5f4b5bfbe39d9ebfa8b9d071a27a7933de7380dc69e46

Contents?: true

Size: 963 Bytes

Versions: 1

Compression:

Stored size: 963 Bytes

Contents

{%- assign show-title = include.show-title | default: true -%}
<div {% if include.id %}id="{{ include.id }}"{% endif %} class="vertical-tabset">
	{%- for tab in include.tabs -%}
	{%- capture tab-id -%}tab{{ forloop.index }}-{{ tab.id | default: tab.title | slugify }}{%- endcapture -%}
    <div id="{{ tab-id }}" class="vertical-tab">
    	{%- if forloop.first == true -%}
        <input type="radio" name="{{ include.id }}" id="option-{{ tab-id }}" checked>
        {%- else -%}
        <input type="radio" name="{{ include.id }}" id="option-{{ tab-id }}">
        {%- endif -%}
        <label for="option-{{ tab-id }}" style="width: {{ include.header-width | default: 30 }}%;">{{ tab.title }}</label>
        <section class="tab-panel" style="left: {{ include.header-width | default: 30 }}%;">
            {% if show-title == true %}<h2>{{ tab.title }}</h2>{% endif %}
            <p>{{ tab.content }}</p>
        </section>
    </div>
	{%- endfor -%}
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-consulting-0.9.3 _includes/tabs.html