Skip to content

Commit

Permalink
Merge pull request #59 from bartoszmajsak/patch-1
Browse files Browse the repository at this point in the history
Fixed date template
  • Loading branch information
tommy351 committed Jun 5, 2015
2 parents 5b728d5 + f2b0172 commit baa111e
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions source/_includes/post/date.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
{% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %}
{% capture has_date %}{{ date | size }}{% endcapture %}
{% if page.date %}{% capture time %}{{ page.date_text }}{% endcapture %}{% endif %}
{% if post.date %}{% capture time %}{{ post.date_text }}{% endcapture %}{% endif %}

{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %}
{% capture updated_formatted %}{{ page.updated_formatted }}{{ post.updated_formatted }}{% endcapture %}
{% capture was_updated %}{{ updated | size }}{% endcapture %}

{% if has_date != '0' %}
{% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}>{{ date_formatted }}</time>{% endcapture %}
{% endif %}

{% if was_updated != '0' %}
{% capture updated %}<time datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% endcapture %}
{% else %}{% as#dated = false %}{% endif %}
{% if page.updated %}{% capture updated %}{{ page.date_updated_text }}{% endcapture %}{% endif %}
{% if post.updated %}{% capture updated %}{{ post.date_updated_text }}{% endcapture %}{% endif %}

0 comments on commit baa111e

Please # to comment.