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>
|
||||
<link>{{ site.url }}</link>
|
||||
<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>
|
||||
<title>{{ post.title | xml_escape }}</title>
|
||||
{% if post.author.name %}
|
||||
|
@ -23,6 +24,7 @@ layout: null
|
|||
<link>{{ site.url }}{{ post.url }}</link>
|
||||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||
</item>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
</rss>
|
||||
|
|
Loading…
Reference in a new issue