page layout will now accept pages without title metadata

This commit is contained in:
Brandon Mathis 2011-08-14 17:47:46 -04:00
parent 0b77a38704
commit 33112a65a8

View File

@ -4,10 +4,12 @@ layout: default
<div> <div>
<article> <article>
{% if page.title %}
<header> <header>
<h1 class="entry-title">{{ page.title | titlecase }}</h1> <h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %} {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
</header> </header>
{% endif %}
{{ content }} {{ content }}
{% unless page.footer == false %} {% unless page.footer == false %}
<footer> <footer>