_includes/tabs.html in jekyll-theme-consulting-0.9.1 vs _includes/tabs.html in jekyll-theme-consulting-0.9.2

- old
+ new

@@ -1,5 +1,6 @@ +{%- 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 -%} @@ -7,10 +8,10 @@ {%- 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 }}%;"> - <h2>{{ tab.title }}</h2> + {% if show-title == true %}<h2>{{ tab.title }}</h2>{% endif %} <p>{{ tab.content }}</p> </section> </div> {%- endfor -%} </div>