Skip to content

Commit

Permalink
Order tags and make their display consistent on the post & front page
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaillant committed Mar 13, 2015
1 parent 0dd0735 commit a94832e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
<div class="entry-container">
<div class='entry'>
<h2><a href="{{ page.url }}">{{page.title}}</a></h1>
<span class="postdate">{{ page.date | date: "%e %B, %Y" }}
{% for tag in page.tags %}
<a href="/tag/{{ tag }}.html">{{ tag }}</a> {% unless forloop.last %} | {% endunless %}
{% endfor %}
</span>
<p class="postdate">{{ post.date | date: "%e %B, %Y" }}</p>
{%if post.tags %}
<p class="tags">Tags:
{% for tag in (post.tags | sort) %}
<a href="/tag/{{ tag }}.html">{{ tag }}</a> {% unless forloop.last %} | {% endunless %}
{% endfor %}
</p>
{% endif %}
{{ content }}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title : Paul's UC and Dev/Ops Blog
<p class="postdate">{{ post.date | date: "%e %B, %Y" }}</p>
{%if post.tags %}
<p class="tags">Tags:
{% for tag in post.tags %}
{% for tag in (post.tags | sort) %}
<a href="/tag/{{ tag }}.html">{{ tag }}</a> {% unless forloop.last %} | {% endunless %}
{% endfor %}
</p>
Expand Down

0 comments on commit a94832e

Please sign in to comment.