aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/2021-04-09-snippets.md
blob: f76845a171794ec287939c135e2a43f96a6f31d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: Code snippets
excerpt: >
  Easily include code snippets in your posts.
snippets_root_directory: snippets
snippets_language: c++
snippets:
  hello:
    - hello.hpp
    - hello.cpp
  world:
    - world.hpp
    - world.cpp
---
It's pretty simple, just use the corresponding include:

{% include snippets/section.html section_id='hello' %}

This is another set of snippets:

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