aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts/post.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/post.html')
-rw-r--r--_layouts/post.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/_layouts/post.html b/_layouts/post.html
index 740da65..92fa965 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -5,9 +5,13 @@ layout: default
<h1>{{ page.title }}</h1>
<div class="post-date">
<p class="text-muted">
- {% if page.category %}
+ {%- comment -%}
+ Collapse the Liquid whitespace here, so that no extra spaces
+ between <span>s are introduced.
+ {%- endcomment -%}
+ {%- if page.category -%}
<span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a class="category" href="{{ '/' | relative_url }}{{ page.category | slugify: 'pretty' }}/">{{ page.category }}</a>
- {% endif %}
+ {%- endif -%}
<span class="glyphicon glyphicon-time"></span>&nbsp;{{ page.date | date: '%-d&nbsp;%b&nbsp;%Y' }}
</p>
</div>