feat(feed): exclude unlisted posts from rss and json feeds
This commit is contained in:
@@ -32,8 +32,9 @@ eleventyImport:
|
||||
"support": {{ site.support | textcastingSupport | jsonEncode | safe }}
|
||||
{%- endif %}
|
||||
},
|
||||
{%- set listedFeedPosts = collections.feed | excludeUnlistedPosts %}
|
||||
"items": [
|
||||
{%- for post in collections.feed %}
|
||||
{%- for post in listedFeedPosts %}
|
||||
{%- set absolutePostUrl = site.url + post.url %}
|
||||
{%- set postImage = post.data.photo %}
|
||||
{%- if postImage %}
|
||||
|
||||
Reference in New Issue
Block a user