Fixed: Wrong navigation style on the right side of news and docs pages (#9586)

Merge pull request 9586
This commit is contained in:
a story 2024-04-24 02:58:59 +08:00 committed by GitHub
parent dbbfc5d48c
commit c85bd15340
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
{{ item_page.menu_name | default: item_page.title }}
</a>
{% 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 %}
</ul>
{% endfor -%}

View File

@ -1,10 +1,10 @@
<div class="unit one-fifth hide-on-mobiles">
<aside>
<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>
</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>
</li>
</ul>
@ -23,7 +23,7 @@
<ul>
{% for post in site.posts -%}
{% 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>
</li>
{% endunless -%}