jekyll-json-feed icon indicating copy to clipboard operation
jekyll-json-feed copied to clipboard

Option to include only post excerpts and not full content in feed.json

Open sheriferson opened this issue 1 year ago • 0 comments

See this section of the Jekyll documentation on post excerpts.

If I set the following in _config.yml:

...
feed:
  excerpt_only: true
excerpt_separator: <!--more-->
...

I expect to see only content before <!--more--> in the generated feeds. feed.xml generated by jekyll-feed acts accordingly, but I see the full post html in feed.json.

Setting excerpt: in the post's frontmatter doesn't change the generated "content_html" in feed.json. It does add a "summary" entry though.

I realize excerpt_only: true is a jekyll-feed setting and it's not mentioned in the README for jekyll-json-feed, so I'm not sure if this is considered intentional behavior, a missing feature, or a bug. But it would be nice if jekyll-json-feed supported including only excerpts and not full post content in the generated feeds.

sheriferson avatar Feb 27 '23 10:02 sheriferson