Skip to content

Commit

Permalink
Post dates
Browse files Browse the repository at this point in the history
  • Loading branch information
andersondias committed Jan 27, 2011
1 parent 24adf2e commit c8a392a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _layouts/post.html
Expand Up @@ -4,6 +4,9 @@
<div class='post'>
<h2>{{ page.title }}</h2>
{{ content }}

<span class='time'>{{ page.date | date: "%Y-%m-%d" }}</span>

{% if page.categories.size > 0 %}
<ul class='categories'>
{% for category in page.categories %}
Expand Down
5 changes: 4 additions & 1 deletion index.html
Expand Up @@ -6,14 +6,17 @@
<div class='post'>
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
{{ post.content }}

<span class='time'>{{ post.date | date: "%Y-%m-%d" }}</span>

{% if post.categories.size > 0 %}
<ul class='categories'>
{% for category in post.categories %}
<li>{{ category }}</li>
{% endfor %}
</ul>
{% endif %}
<img src='/images/separator.gif' />
<img src='/images/separator.gif' class='separator'/>
</div>
{% endfor %}
{% if paginator.next_page %}
Expand Down

0 comments on commit c8a392a

Please sign in to comment.