From bf52b90764d7d93b37b592ff19c2117cc712a47d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Feb 2018 06:41:58 +0300 Subject: customize snippets language --- _includes/snippets/section.html | 2 +- _posts/2017-06-24-static-vs-inline-vs-unnamed-namespaces.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3