From 4d56a3928690986672d8ff2cc3cf88e925c4b40e Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 13 Dec 2015 16:09:07 -0300 Subject: Use a variable in the yaml front matter for sidebars --- _layouts/default.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '_layouts/default.html') diff --git a/_layouts/default.html b/_layouts/default.html index e66a7e8..1d57e03 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,12 +7,17 @@
+ {% if page.sidebar %}
{{ content }}
- {% include sb_sidebar.html %} +
+ {% include {{page.sidebar}} %}
+ {% else %} + {{ content }} + {% endif %}
-- cgit v1.2.3