Fixed: Wrong navigation style on the right side of news and docs pages (#9586)
Merge pull request 9586
This commit is contained in:
parent
dbbfc5d48c
commit
c85bd15340
|
@ -10,7 +10,7 @@
|
||||||
{{ item_page.menu_name | default: item_page.title }}
|
{{ item_page.menu_name | default: item_page.title }}
|
||||||
</a>
|
</a>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
<li{%- unless item_page.url != page.url -%} class="current"{%- endunless -%}>{{ item_html }}</li>
|
<li{% unless item_page.url != page.url %} class="current"{% endunless %}>{{ item_html }}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<div class="unit one-fifth hide-on-mobiles">
|
<div class="unit one-fifth hide-on-mobiles">
|
||||||
<aside>
|
<aside>
|
||||||
<ul>
|
<ul>
|
||||||
<li {%- if page.title == 'News' %} class="current" {%- endif %}>
|
<li {% if page.title == 'News' %} class="current" {% endif %}>
|
||||||
<a href="{{ '/news/' | relative_url }}">All News</a>
|
<a href="{{ '/news/' | relative_url }}">All News</a>
|
||||||
</li>
|
</li>
|
||||||
<li {%- if page.title == 'Releases' %} class="current" {%- endif %}>
|
<li {% if page.title == 'Releases' %} class="current" {% endif %}>
|
||||||
<a href="{{ '/news/releases/' | relative_url }}">Jekyll Releases</a>
|
<a href="{{ '/news/releases/' | relative_url }}">Jekyll Releases</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in site.posts -%}
|
{% for post in site.posts -%}
|
||||||
{% unless post.categories contains 'release' -%}
|
{% unless post.categories contains 'release' -%}
|
||||||
<li {%- if page.title == post.title %} class="current" {%- endif %}>
|
<li {% if page.title == post.title %} class="current" {% endif %}>
|
||||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endunless -%}
|
{% endunless -%}
|
||||||
|
|
Loading…
Reference in New Issue