Skip to content

Commit

Permalink
show >>Blog<< on blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Arc-blroth committed Oct 17, 2023
1 parent 72587e2 commit 48a5165
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _data/navbar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
href: /blog
# make sure g isn't cut off
z-index: 1
has_posts: true

- name: Team
href: /team
Expand Down
2 changes: 1 addition & 1 deletion _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<li {% if entry.z-index != nil -%}style="z-index: {{ entry.z-index }};"{%- endif -%}>
<a href="{{ entry.href }}"
title="{{ entry.name }}"
{%- if stripped-page-url == entry.href -%}highlighted{%- endif -%}
{%- if stripped-page-url == entry.href or (entry.has_posts != nil and layout.layout == "default") -%}highlighted{%- endif -%}
>
{{- entry.name | truncate: 4, "" -}}
</a>
Expand Down

0 comments on commit 48a5165

Please sign in to comment.