Exclude hidden posts from feed.
This commit is contained in:
parent
f5b071f84a
commit
d6a1965d55
16
feed.xml
16
feed.xml
@ -9,13 +9,15 @@ 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 %}
|
||||||
<item>
|
{% if post.hidden == null or post.hidden == false %}
|
||||||
<title>{{ post.title | xml_escape }}</title>
|
<item>
|
||||||
<description>{{ post.content | xml_escape }}</description>
|
<title>{{ post.title | xml_escape }}</title>
|
||||||
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
|
<description>{{ post.content | xml_escape }}</description>
|
||||||
<link>{{ site.url }}{{ post.url }}</link>
|
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
|
||||||
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
<link>{{ site.url }}{{ post.url }}</link>
|
||||||
</item>
|
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
|
||||||
|
</item>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
Loading…
Reference in New Issue
Block a user