forked from imathis/octopress
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unsupported 'updated' flag from _includes/post/date.html
Jekyll does not support this value for Page or Post classes. The capture returned an empty Sting, which was always evaluated to true in '{% if updated %}'.
- Loading branch information
1 parent
c2a68cc
commit 81e814a
Showing
3 changed files
with
5 additions
and
11 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,13 +1,7 @@ | ||
{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} | ||
{% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %} | ||
{% capture has_date %}{{ date | size }}{% endcapture %} | ||
{% capture updated %}{{ page.updated }}{{ post.updated }}{% 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 %} | ||
{% capture time %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate>{{ date_formatted }}</time>{% endcapture %} | ||
{% endif %} | ||
|
||
{% if was_updated != '0' %} | ||
{% capture updated %}<time class="updated" datetime="{{ updated | datetime | date_to_xmlschema }}">Updated {{ updated | ordinalize }}</time>{% endcapture %} | ||
{% else %}{% assign updated = false %}{% endif %} |
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
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