Skip to content

Commit

Permalink
Allow time to be shown with a header image overlay (mmistakes#1756)
Browse files Browse the repository at this point in the history
Fix `read_time` logic in header image overlay
  • Loading branch information
bexelbie authored and mmistakes committed Jul 24, 2018
1 parent 73d8e15 commit 152e529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/page__hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1 id="page-title" class="page__title" itemprop="headline">
{% if page.header.show_overlay_excerpt != false and page.excerpt %}
<p class="page__lead">{{ page.excerpt | markdownify | remove: "<p>" | remove: "</p>" }}</p>
{% endif %}
{% if site.read_time and page.read_time %}
{% if page.read_time %}
<p class="page__meta"><i class="far fa-clock" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}
{% if page.header.cta_url %}
Expand Down

0 comments on commit 152e529

Please sign in to comment.