-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With the new octopress-date-time gem there is a significant difference how the date-time should be displayed. Using old template results with no date displayed.
- Loading branch information
1 parent
f34baa0
commit f2b0172
Showing
1 changed file
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |