Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_includes/docs_contents.html
Expand Up @@ -10,7 +10,7 @@ <h4>{{ section.title }}</h4>
{{ 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 -%}
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/news_contents.html
@@ -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>
Expand All @@ -23,7 +23,7 @@ <h4>Other News</h4>
<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 -%}
Expand Down