Skip to content

Commit

Permalink
Merge pull request #4841 from himeshsiriwardana/build-error-11-06
Browse files Browse the repository at this point in the history
fixed a build error
  • Loading branch information
himeshsiriwardana authored Nov 6, 2024
2 parents 07ff747 + 001935c commit 2d02a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/theme/material/partials/nav-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
class="md-nav__link md-nav__link--active"
>
{{ nav_item.title }}
{% if nav_item.meta.read_time %}
{% if nav_item.meta and nav_item.meta.read_time %}
<span class="md-nav__link-read_time">{{ nav_item.meta.read_time }}</span>
{% endif %}
</a>
Expand All @@ -162,7 +162,7 @@
<li class="{{ class }}">
<a href="{{ nav_item.url | url }}" class="md-nav__link">
{{ nav_item.title }}
{% if nav_item.meta.read_time %}
{% if nav_item.meta and nav_item.meta.read_time %}
<span class="md-nav__link-read_time">{{ nav_item.meta.read_time }}</span>
{% endif %}
</a>
Expand Down

0 comments on commit 2d02a27

Please sign in to comment.