Skip to content

Commit bdd3b4c

Browse files
committed
Fixed issue with nil date in FAQ rss feed.
1 parent a1ba5b7 commit bdd3b4c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

_config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ collections:
3636
# We just want the listing page.
3737
output: false
3838

39+
40+
defaults:
41+
- scope:
42+
type: faqs
43+
values:
44+
date_added: 2016-12-08
45+
3946
# Used to render to proper text/config in language-specific branches
4047
locale: en
4148

faq/feed.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ layout: null
1515
<item>
1616
<title>{{ faq.question | xml_escape }}</title>
1717
<description>{{ faq.content | xml_escape }}</description>
18-
<pubDate>{{ faq.date | date_to_rfc822 }}</pubDate>
18+
<pubDate>{{ faq.date_added | date_to_rfc822 }}</pubDate>
1919
<link>{{ faq.url | prepend: site.baseurl | prepend: site.url }}</link>
2020
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
2121
{% for tag in post.tags %}

0 commit comments

Comments
 (0)