Skip to content

Commit

Permalink
Update nav.html
Browse files Browse the repository at this point in the history
Using unless makes the condition slightly more readable by directly expressing the condition for the exception
  • Loading branch information
Ayush277 authored Oct 20, 2024
1 parent 362e9e7 commit 11ed158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
{% endif %}
</ul>
</div>
{% if page.layout != 'index' %}
{% unless page.layout == 'index' %}
<div class="float-sm-left pl-3 breadcrumb">
<p class="my-0 py-3 py-sm-4 text-gray">
{% if page.lang != 'en' %}
Expand Down

0 comments on commit 11ed158

Please sign in to comment.