Skip to content

Commit

Permalink
Merge pull request sourcebots#85 from Adimote/fix-expanding-sidebar
Browse files Browse the repository at this point in the history
Fix sidebar not expanding when heading selected.
  • Loading branch information
Adimote authored Jan 27, 2019
2 parents 1a5ba96 + 4dca987 commit eecd90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<ul class="sidebar">
{% for heading in site.data.sidebar_tree.tree %}
{% assign category_diff = clean_url | split:heading.url | first %}
<li class="{% if category_diff == '' %}expanded{% endif %} {% if clean_url == heading.url %}selected{% endif %}">
<li class="{% if category_diff == '' or clean_url==heading.url %}expanded{% endif %} {% if clean_url == heading.url %}selected{% endif %}">
<a href="{{ heading.url | prepend: site.baseurl }}">{{heading.title}}</a>
{% if heading.tree %}
<ul>
Expand Down

0 comments on commit eecd90d

Please sign in to comment.