Skip to content

Commit

Permalink
Make page.title conditional in <h1>
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes authored and sobkowiak committed May 16, 2016
1 parent 392c20d commit f80e492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="page__inner-wrap">
{% unless page.header.overlay_color or page.header.overlay_image %}
<header>
<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>
{% if page.title %}<h1 class="page__title" itemprop="headline">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</h1>{% endif %}
{% if page.read_time %}
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
{% endif %}
Expand Down

0 comments on commit f80e492

Please sign in to comment.