aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/_posts/2021-04-10-collapsible.md
blob: 214c408f0a4f1c5d309a2a592e5a8b063c1a8917 (plain) (tree)
1
2
3
4
5



                                               
              










                                 



                                                                    
 
                                                                   


                                
                                                                   
---
title: Collapsible snippets
excerpt: >
  Snippets can be hidden in collapsible panels.
category: Code
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 jekyll-theme/snippets/section.html section_id='hello' %}

This is another set of snippets:

{% include jekyll-theme/snippets/section.html section_id='world' %}