don't include unpublished in feed

This commit is contained in:
Mahdi Dibaiee 2021-11-06 22:34:23 +00:00
parent 060c2151a6
commit 76b9d91809

View File

@ -12,6 +12,9 @@ layout: null
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate> <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator> <generator>Jekyll v{{ jekyll.version }}</generator>
{% for post in site.posts limit:10 %} {% for post in site.posts limit:10 %}
{% if post.published == false %}
{% continue %}
{% endif %}
<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>