aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/2021-04-09-snippets.md
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2021-04-09-snippets.md')
-rw-r--r--_posts/2021-04-09-snippets.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/_posts/2021-04-09-snippets.md b/_posts/2021-04-09-snippets.md
new file mode 100644
index 0000000..f76845a
--- /dev/null
+++ b/_posts/2021-04-09-snippets.md
@@ -0,0 +1,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' %}