summaryrefslogtreecommitdiff
path: root/_includes/postmeta.html
diff options
context:
space:
mode:
authorAilin Nemui <ailin@z30a.localdomain>2017-01-04 21:19:54 +0100
committerAilin Nemui <ailin@z30a.localdomain>2017-01-04 21:19:54 +0100
commite14bd017f339aad01d57953d14ba03ab7a7a732a (patch)
tree04bbdc6e9b282ecd7f46705f2f223ec5adff5265 /_includes/postmeta.html
parent2044e5b80e728bcd01022fff6f6f3ddc6661f8d2 (diff)
downloadirssi.github.io-e14bd017f339aad01d57953d14ba03ab7a7a732a.zip
fight liquid whitespace
Diffstat (limited to '_includes/postmeta.html')
-rw-r--r--_includes/postmeta.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/_includes/postmeta.html b/_includes/postmeta.html
index 4a4d5b3..3bc9bf7 100644
--- a/_includes/postmeta.html
+++ b/_includes/postmeta.html
@@ -2,9 +2,9 @@
{% if node.author or node.date %}
<p>
<small>
- Posted
- {% if node.author %}
- by
+ Posted {% comment %}
+ {% endcomment %}{% if node.author %}{% comment %}
+ {% endcomment %}by
{% if node.web %}
<a href="{{ node.web }}">{{ node.author }}</a>
{% elsif node.email %}
@@ -12,12 +12,12 @@
{% else %}
{{ node.author }}
{% endif %}
- {% endif %}
+ {% endif %}{% comment %}
- {% if node.date %}
- {% assign ordinalize = node.date | date: "%-d" %}
- on {{ node.date | date: "%B %-d" }}<sup>{% include ordinal.html ordinalize=ordinalize %}</sup>
- {{ node.date | date: "%Y" }}
+ {% endcomment %}{% if node.date %}{% comment %}
+ {% endcomment %}{% assign rd = node.date | date: "%-d" %}{% capture ordinalize %}{% include ordinal.html ordinalize=rd %}{% endcapture %}{% comment %}
+ {% endcomment %}on {{ node.date | date: "%B %-d" }}<sup>{{ ordinalize | strip_newlines }}</sup>{% comment %}
+ {% endcomment %} {{ node.date | date: "%Y" }}
{% endif %}
</small>
</p>