Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make it so we only use date_to_xmlschema on dates that exist

  • Loading branch information...
commit d9c5348cf79e7f0dd7bdc3f753ddc6bcc8185023 1 parent 0cb8335
@bryanjswift authored
View
2  _includes/archive_article.html
@@ -1,6 +1,6 @@
<article class="archived">
<h4>
- <time class="day" datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "%b %d" }}</time>
+ <time class="day" datetime="{{ post.date | date_to_xmlschema }}" pubdate>{{ post.date | date: "%b %d" }}</time>
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
</h4>
</article>
View
8 _includes/article.html
@@ -1,13 +1,15 @@
<article class="hentry">
<header>
{% if post.link %}
- <h1 class="entry-title"><a class="external" href="{{ post.link }}">{{ post.title }}</a></h3>
+ <h1 class="entry-title"><a class="external" href="{{ post.link }}">{{ post.title }}</a></h1>
{% elsif index %}
- <h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a></h3>
+ <h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a></h1>
{% else %}
<h1 class="entry-title">{{ post.title }}</h1>
{% endif %}
- <time class= "updated" datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%B</span> <span class='day'>%d</span>, <span class='year'>%Y</span>"}}</time> - by <span class="byline source-org author vcard"><span class="org fn">{{ site.author }}</span></span>
+ {% if post.date %}
+ <time class= "updated" datetime="{{ post.date | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%B</span> <span class='day'>%d</span>, <span class='year'>%Y</span>"}}</time> - by <span class="byline source-org author vcard"><span class="org fn">{{ site.author }}</span></span>
+ {% endif %}
</header>
<div class="clearfix entry-content">{{ content }}</div>
{% if index %}
View
4 sitemap.xml
@@ -6,14 +6,14 @@ layout: nil
{% for post in site.posts %}
<url>
<loc>{{ site.url }}{{ post.url }}</loc>
- <lastmod>{{ post.date | datetime | date_to_xmlschema }}</lastmod>
+ <lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
</url>
{% endfor %}
{% for page in site.pages %}
{% if page.layout == "post" %}
<url>
<loc>{{ site.url }}{{ page.url }}</loc>
- {% if page.date %}<lastmod>{{ page.date | datetime | date_to_xmlschema }}</lastmod>{% endif %}
+ {% if page.date %}<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>{% endif %}
</url>
{% endif %}
{% endfor %}
Please sign in to comment.
Something went wrong with that request. Please try again.