From 55efbd1782a02000cb07825a7c1b6543d3fb978f Mon Sep 17 00:00:00 2001 From: Michael Rose <est.michael@gmail.com> Date: Mon, 16 May 2016 09:42:16 -0400 Subject: [PATCH] Make page.title conditional in <h1> - Fix #312 --- _layouts/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/single.html b/_layouts/single.html index e2b4f536..8c5fd0f8 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -26,7 +26,7 @@ layout: default <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 %}