diff options
author | dequis <dx@dxzone.com.ar> | 2015-12-13 16:09:07 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-12-13 21:52:07 -0300 |
commit | 4d56a3928690986672d8ff2cc3cf88e925c4b40e (patch) | |
tree | 1e2368eaeabf6ba415f920733c5c7295459e733a /_layouts | |
parent | 6a085eb03a4f82d775ac1367ffef74a3c10f9c81 (diff) | |
download | irssi.github.io-4d56a3928690986672d8ff2cc3cf88e925c4b40e.zip |
Use a variable in the yaml front matter for sidebars
Diffstat (limited to '_layouts')
-rw-r--r-- | _layouts/default.html | 7 | ||||
-rw-r--r-- | _layouts/home.html | 1 |
2 files changed, 7 insertions, 1 deletions
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 @@ <div class="page-content"> <div class="container"> + {% if page.sidebar %} <div class="col-xs-12 col-md-8"> {{ content }} </div> <div class="col-xs-12 col-md-4"> - {% include sb_sidebar.html %} + <br /> + {% include {{page.sidebar}} %} </div> + {% else %} + {{ content }} + {% endif %} </div> </div> diff --git a/_layouts/home.html b/_layouts/home.html index e135f91..b2b4f47 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -1,5 +1,6 @@ --- layout: default +sidebar: sb_sidebar_news.html --- <h1>News{% if paginator.page > 1 %} Archive{% endif %}</h1> |