Exclude hidden posts from feed.
This commit is contained in:
parent
f5b071f84a
commit
d6a1965d55
2
feed.xml
2
feed.xml
@ -9,6 +9,7 @@ redirect_from: "/rss"
|
|||||||
<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:10 %}
|
||||||
|
{% if post.hidden == null or post.hidden == false %}
|
||||||
<item>
|
<item>
|
||||||
<title>{{ post.title | xml_escape }}</title>
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
<description>{{ post.content | xml_escape }}</description>
|
<description>{{ post.content | xml_escape }}</description>
|
||||||
@ -16,6 +17,7 @@ redirect_from: "/rss"
|
|||||||
<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 New Issue
Block a user