Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sheriferson opened this issue Feb 27, 2023 · 0 comments

Comments

@sheriferson
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant