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 | |
parent | 6a085eb03a4f82d775ac1367ffef74a3c10f9c81 (diff) | |
download | irssi.github.io-4d56a3928690986672d8ff2cc3cf88e925c4b40e.zip |
Use a variable in the yaml front matter for sidebars
-rw-r--r-- | _includes/sb_sidebar.html | 8 | ||||
-rw-r--r-- | _includes/sb_sidebar_settings.html | 6 | ||||
-rw-r--r-- | _layouts/default.html | 7 | ||||
-rw-r--r-- | _layouts/home.html | 1 | ||||
-rw-r--r-- | documentation/settings/index.markdown | 2 |
5 files changed, 8 insertions, 16 deletions
diff --git a/_includes/sb_sidebar.html b/_includes/sb_sidebar.html deleted file mode 100644 index 419f9a8..0000000 --- a/_includes/sb_sidebar.html +++ /dev/null @@ -1,8 +0,0 @@ -{% if page.title contains 'News' %} -{% include sb_sidebar_news.html %} -{% endif %} -{% case page.url %} -{% when "/documentation/settings/" %} -{% include sb_sidebar_settings.html %} - -{% endcase %} diff --git a/_includes/sb_sidebar_settings.html b/_includes/sb_sidebar_settings.html index d41106f..ec37efe 100644 --- a/_includes/sb_sidebar_settings.html +++ b/_includes/sb_sidebar_settings.html @@ -1,9 +1,3 @@ -<hr /> - -<p>Here you can find all the Irssi settings that you can set with /set explained.</p> - -<p>Use the Quick Nav feature below to rapidly find the description of a setting if you're looking for a specific one.</p> - <h4>Quick Nav</h4> <p> 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> diff --git a/documentation/settings/index.markdown b/documentation/settings/index.markdown index c0f5869..1b620ee 100644 --- a/documentation/settings/index.markdown +++ b/documentation/settings/index.markdown @@ -2,8 +2,8 @@ layout: page title: Settings Documentation permalink: documentation/settings/ +sidebar: sb_sidebar_settings.html --- -{% assign sidebar = "xxx" %} Irssi 0.8.10 settings notes. Gathered through much effort by Rocco Caputo rcaputo at cpan dot org (aka dngor). Includes original work by Nei, and advice and guidance from irc.freenode.net #irssi. This is not an attempt to document Irssi completely. It should be used along with the documents at [Documentation](/documentation) for more complete understanding of how irssi works. For example, the startup HOWTO and tips/tricks show sample uses for these settings, including some very useful stuff. |