summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-10-04 12:03:45 -0600
committermo k <mo@mokhan.ca>2012-10-04 12:03:45 -0600
commit84e665783c5fdbddaedda411b3a34ac64b6578c2 (patch)
tree6418b660474c9990f528001eb193f2a2a563a472
parentab55f92aa3529dd151f0f2e4e3305e7ce02e3454 (diff)
format the conditional logic in the post template to try to make it easier to understand
-rwxr-xr-x[-rw-r--r--]_layouts/post.html22
1 files changed, 14 insertions, 8 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index cbf38ae..bef4515 100644..100755
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,22 +2,28 @@
layout: 1column
---
<article>
-<header>
-<div class="page-header">
- <h1>{{ page.title }} <small>Posted on {{ page.date | date:"%B %d, %Y" }} {% if page.time %}@ {{ page.time }} {% endif %} {% if page.categories.length > 0 %}in {% endif %} {% for category in page.categories %} <a href='/topics/{{ category }}/'><span class="label">{{ category }}</span></a>{% if forloop.last == false %}, {% endif %} {% endfor %} </small></h1>
-</div>
-</header>
-{{ content }}
+ <header>
+ <div class="page-header">
+ <h1>{{ page.title }}</h1>
+ <h5>
+ Posted on {{ page.date | date:"%B %d, %Y" }}
+ {% for category in page.categories %}
+ <a href='/topics/{{ category }}/'><span class="label">{{ category }}</span></a>
+ {% endfor %}
+ </h5>
+ </div>
+ </header>
+ {{ content }}
</article>
<ul class="pager">
<li class="previous">
{% if page.next %}
- <a href="{{page.next.url}}" title="{{page.next.title}}">&larr; Newer</a>
+ <a href="{{page.next.url}}" title="{{page.next.title}}">&larr; Newer</a>
{% endif %}
</li>
<li class="next">
{% if page.previous %}
- <a href="{{page.previous.url}}" title="{{page.previous.title}}">Older &rarr;</a>
+ <a href="{{page.previous.url}}" title="{{page.previous.title}}">Older &rarr;</a>
{% endif %}
</li>
</ul>