Browse code

fixed logic for showing dates on page layout

Brandon Mathis authored on 19/07/2011 at 21:28:36
Showing 1 changed files
... ...
@@ -6,16 +6,12 @@ layout: default
6 6
 <article>
7 7
   <header>
8 8
     <h1 class="entry-title">{{ page.title | titlecase }}</h1>
9
-    {% if page.meta == false or !page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
9
+    {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
10 10
   </header>
11 11
   {{ content | smart_quotes }}
12 12
   {% unless page.footer == false %}
13 13
     <footer>
14
-      {% if page.date %}
15
-      <p class="meta">
16
-        {% include post/date.html %}
17
-      </p>
18
-      {% endif %}
14
+      {% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
19 15
       {% unless page.sharing == false %}
20 16
         {% include post/sharing.html %}
21 17
       {% endunless %}