Sha256: 49ec95404a6c7fd3adf91aef15a0018d568e7772ee035e3b92c5f0a1fe8cf01b
Contents?: true
Size: 933 Bytes
Versions: 1
Compression:
Stored size: 933 Bytes
Contents
{%- assign show-title = include.show-title | default: true -%} <div id="{{ include.id }}" class="vertical-tabset"> {%- for tab in include.tabs -%} {%- capture tab-id -%}{{ tab.id | default: tab.title | slugify }}{{ forloop.index }}{%- endcapture -%} <div id="tab-{{ 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.2 | _includes/tabs.html |