aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/snippets/header.html
blob: 673fc5a3bff41e77a1b12a34cef0211a31dbbf80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% capture snippet_basename %}{{ include.snippet_path | split:"/" | last }}{% endcapture %}
{% capture snippet_id %}{{ include.snippet_path | replace:'/','_' | replace:'.','_' }}{% endcapture %}
<div class="panel panel-default">
  <div class="panel-heading">
    {% if page.snippets_collapsible %}
    <a id="{{ snippet_id }}" data-toggle="collapse" data-parent="#accordion_{{ include.section_id }}" href="#collapse_{{ snippet_id }}">{{ snippet_basename }}</a>
    {% else %}
    <div id="{{ snippet_id }}">{{ snippet_basename }}</div>
    {% endif %}
  </div>
  {% if page.snippets_collapsible %}
  <div id="collapse_{{ snippet_id }}" class="panel-collapse collapse">
  {% endif %}
    <div class="panel-body">