aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes/snippets/section.html
blob: cbb778fe9037f27efa2b57bd6d45b67d943c7aad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% if page.snippets_collapsible %}
<div class="panel-group" id="accordion_{{ include.section_id }}">
{% else %}
<div class="panel-group">
{% endif %}

{% for i in page.snippets[include.section_id] %}
  {% include snippets/header.html snippet_path=i section_id=include.section_id %}

{% capture snippet %}
```{{ page.snippets_language }}
{% include_relative {{ page.snippets_root_directory }}/{{ i }} %}```
{% endcapture %}

{{ snippet | markdownify }}

  {% include snippets/footer.html %}
{% endfor %}

</div>

{% for i in page.snippets[include.section_id] %}
  {% capture snippet_id %}{{ i | replace:"/","_" | replace:".","_" }}{% endcapture %}
[{{ i }}]: #{{ snippet_id }}
{% endfor %}