From 9b3ad53e855764e46a9febe395b88d3ca1aeaf45 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 24 Jun 2017 22:54:43 +0300 Subject: add post "static vs. inline vs. namespace {" Also includes a bunch of includes to easily add grouped code snippets to a post. They were present before, but I wiped them away during the recent major history rewriting which I still regret about. --- _includes/snippets/header.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 _includes/snippets/header.html (limited to '_includes/snippets/header.html') diff --git a/_includes/snippets/header.html b/_includes/snippets/header.html new file mode 100644 index 0000000..673fc5a --- /dev/null +++ b/_includes/snippets/header.html @@ -0,0 +1,14 @@ +{% capture snippet_basename %}{{ include.snippet_path | split:"/" | last }}{% endcapture %} +{% capture snippet_id %}{{ include.snippet_path | replace:'/','_' | replace:'.','_' }}{% endcapture %} +
+
+ {% if page.snippets_collapsible %} + {{ snippet_basename }} + {% else %} +
{{ snippet_basename }}
+ {% endif %} +
+ {% if page.snippets_collapsible %} +
+ {% endif %} +
-- cgit v1.2.3