Hide drafts from rss
This commit is contained in:
parent
d862e14605
commit
b0a76dba75
1 changed files with 4 additions and 2 deletions
6
feed.xml
6
feed.xml
|
@ -8,7 +8,8 @@ layout: null
|
||||||
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
|
||||||
<link>{{ site.url }}</link>
|
<link>{{ site.url }}</link>
|
||||||
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
|
||||||
{% for post in site.posts limit:10 %}
|
{% for post in site.posts limit:20 %}
|
||||||
|
{% if post.status == "published" %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ post.title | xml_escape }}</title>
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
{% if post.author.name %}
|
{% if post.author.name %}
|
||||||
|
@ -23,6 +24,7 @@ layout: null
|
||||||
<link>{{ site.url }}{{ post.url }}</link>
|
<link>{{ site.url }}{{ post.url }}</link>
|
||||||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
</item>
|
</item>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|
Loading…
Reference in a new issue