-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
excerpt needs to fall back to pruneLength when no excerpt_separator #18312
Comments
I would like to take this. Will work on it this weekend and post here if I get blocked. |
@fabianrios do your markdown files contain html or just plain markdown? Can you post an example of the formatting you have? Trying to reproduce this issue. |
@fabianrios ignore previous question. I have replicated the behaviour with markdown: https://github.com/samrae7/gatsby-remark-repro |
still working on this. PR coming in next couple of days |
happy to see action was taken, I lost track of this for a while. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Awaiting reviewing response from @pieh |
@fabianrios can you review the PR as well? |
Summary
excerpt falling back to pruneLength when there is no custom excerpt_separator on the file
Basic example
config.js
template.js
Motivation
I had to put a custom excerpt for just 2 files and the rest will look just fine with the default 140 pruneLength but it turns out it doesn't fall back so I have to manually edit hundreds of files to add a which wouldn´t have been necessary if the excerpt function just fall back to pruneLength when there is no in the file.
EDIT: Reproduction example here: samrae7/gatsby-remark-repro
The text was updated successfully, but these errors were encountered: