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

support custom excerpt #3

Closed
juliangruber opened this issue Apr 3, 2014 · 5 comments
Closed

support custom excerpt #3

juliangruber opened this issue Apr 3, 2014 · 5 comments

Comments

@juliangruber
Copy link

instead of taking the first paragraph it would be great to be able to supply a custom excerpt

@ianstormtaylor
Copy link
Contributor

ah yeah that would be cool. basically we could just have a check for if (!data.excepert) grabFirstP() yeah?

@juliangruber
Copy link
Author

sweet yeah. with data.excerpt the excerpt would need to be in the front matter, right?

@ianstormtaylor
Copy link
Contributor

yup, it would be defined in front matter

@juliangruber
Copy link
Author

lucky we use yaml, would be so awkward without multiline support

@webketje
Copy link
Member

webketje commented Dec 8, 2021

This has actually been implemented a while ago, see fixtures/no-mutation & test https://github.com/metalsmith/metalsmith-excerpts/blob/master/test/index.js#L118

@webketje webketje closed this as completed Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants