Skip to content

Commit

Permalink
Added <lastBuildDate> everywhere (#29)
Browse files Browse the repository at this point in the history
* Last Build Date

I think that the <lastBuildDate> tag is also needed. I'm not sure if this is the best way to implement it though...

* Fixed the typo (ddate)

* Added <lastBuildDate> to the articles feed

* Added <lastBuildDate> to the categories feed

* Added <lastBuildDate> to the link feed

* Yet another typo
  • Loading branch information
zelkor authored and georgemandis committed Oct 9, 2017
1 parent 0bfcc34 commit 4ad31ee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions feed.articles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{% for post in site.posts limit:1 %}{% unless post.link %}{{ post.date | date_to_rfc822 }}{% endunless %}{% endfor %}</lastBuildDate>
{% for post in site.posts %}
{% unless post.link %}
<item>
Expand Down
1 change: 1 addition & 0 deletions feed.category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>Posts categorized as 'miscellaneous'</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{% for post in site.categories.miscellaneous limit:1 %}{{ post.date | date_to_rfc822 }}{% endfor %}</lastBuildDate>
{% for post in site.categories.miscellaneous limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
Expand Down
1 change: 1 addition & 0 deletions feed.links.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{% for post in site.posts limit:1 %}{% if post.link %}{{ post.date | date_to_rfc822 }}{% ifunless %}{% endfor %}</lastBuildDate>
{% for post in site.posts %}
{% if post.link %}
<item>
Expand Down
1 change: 1 addition & 0 deletions feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<link>{{ site.url }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{% for post in site.posts limit:1 %}{{ post.date | date_to_rfc822 }}{% endfor %}</lastBuildDate>
{% for post in site.posts limit:10 %}
<item>
<title>{{ post.title | xml_escape }}</title>
Expand Down

0 comments on commit 4ad31ee

Please # to comment.