aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 06:41:58 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-02-18 06:41:58 +0300
commitbf52b90764d7d93b37b592ff19c2117cc712a47d (patch)
treea511ba8ecc00172546a683cd7160be420ec7f91a
parentdon't zero-pad day number in dates (diff)
downloadblog-bf52b90764d7d93b37b592ff19c2117cc712a47d.tar.gz
blog-bf52b90764d7d93b37b592ff19c2117cc712a47d.zip
customize snippets language
-rw-r--r--_includes/snippets/section.html2
-rw-r--r--_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md1
2 files changed, 2 insertions, 1 deletions
diff --git a/_includes/snippets/section.html b/_includes/snippets/section.html
index 79be3c1..cbb778f 100644
--- a/_includes/snippets/section.html
+++ b/_includes/snippets/section.html
@@ -8,7 +8,7 @@
{% include snippets/header.html snippet_path=i section_id=include.section_id %}
{% capture snippet %}
-```c++
+```{{ page.snippets_language }}
{% include_relative {{ page.snippets_root_directory }}/{{ i }} %}```
{% endcapture %}
diff --git a/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md b/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
index 94b5105..06e56e4 100644
--- a/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
+++ b/_posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md
@@ -9,6 +9,7 @@ custom_css:
- snippets.css
- syntax.css
snippets_root_directory: snippets/static_vs_inline_vs_unnamed_namespaces/
+snippets_language: c++
snippets:
static:
- static/main.cpp