diff options
| author | tekkub <tekkub@gmail.com> | 2009-07-27 01:46:20 -0600 |
|---|---|---|
| committer | tekkub <tekkub@gmail.com> | 2009-07-27 01:46:20 -0600 |
| commit | 8352e9538ecd1a66a44239a3e775660d91f20d6d (patch) | |
| tree | aa17a526ad3774aa742bd0b6e9b42a4a063e8d58 /_layouts | |
| parent | f1bd9b8a2410131abb0aca5e40d97d3b9b1613c1 (diff) | |
Make sidebar expand the correct category for guides
Diffstat (limited to '_layouts')
| -rw-r--r-- | _layouts/default.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index ea5e3ce..71ba56d 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -25,6 +25,10 @@ sidebar_cats: <body> {% if page.main_category %} <script type="text/javascript">var main_category = "{{ page.main_category }}"</script> + {% else %} + {% if page.categories %} + <script type="text/javascript">var main_category = "{{ page.categories }}"</script> + {% endif %} {% endif %} <div id="main"> <div id="header" class="basic"> |
