don't include unpublished in feed

master
Mahdi Dibaiee 1 year ago
parent 060c2151a6
commit 76b9d91809
  1. 3
      feed.xml

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

Loading…
Cancel
Save