blob: bb555c05316af2683a48bc996e0d6fa75240bd9a (
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
|
---
title: Collapsible snippets
excerpt: >
Snippets can be hidden in collapsible panels.
snippets_root_directory: snippets
snippets_language: c++
snippets_collapsible: true
snippets:
hello:
- hello.hpp
- hello.cpp
world:
- world.hpp
- world.cpp
---
Snippets are defined in exactly the same way as in the [other post].
Just set a front matter value to make them collapsible, and voilà!
[other post]: {{ site.baseurl }}{% post_url 2021-04-09-snippets %}
{% include snippets/section.html section_id='hello' %}
This is another set of snippets:
{% include snippets/section.html section_id='world' %}
|