Closed juliangruber closed 2 years ago
ah yeah that would be cool. basically we could just have a check for if (!data.excepert) grabFirstP()
yeah?
sweet yeah. with data.excerpt
the excerpt would need to be in the front matter, right?
yup, it would be defined in front matter
lucky we use yaml, would be so awkward without multiline support
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
instead of taking the first paragraph it would be great to be able to supply a custom excerpt