aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/2021-04-09-snippets.md
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-31 16:10:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-31 16:10:50 +0300
commite726014585409acacef2e79a8d83a55a9e47ecb6 (patch)
treeb0d2e8fc7129edcbfeb45f72f71f695a5b369bd8 /_posts/2021-04-09-snippets.md
parentposts: permalinks without date (diff)
downloadjekyll-theme-e726014585409acacef2e79a8d83a55a9e47ecb6.tar.gz
jekyll-theme-e726014585409acacef2e79a8d83a55a9e47ecb6.zip
add more examples, update README
Diffstat (limited to '')
-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' %}