-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Hiding the excerpt from the content page #3153
Comments
What's the proposed API here? I believe the common way is to specify some delimiter like # Title
first paragraph
<!-- more -->
rest of article |
A specific frontmatter delimiter could be an option. I see 3 other options. tl,dr;:
I think all suggested options (including excerpt specific separator) are looking good from user-side, so I have no specific preference. Option 1:
|
Another question, how do you want to access this excerpt? Via useData or createContentLoader API maybe? |
If I’m correct, (Currently I use It’s probably a good idea to add it to |
Some cursory dives through documentation indicate that this should be exposed (globally) already as:
See:
Unfortunately, it doesn't seem to work as expected. |
Using the default theme, it could be interesting to hide excerpts from content pages.
My use case for this: I’m building a blog index page on which I only want to show the excerpt of the posts, and that's why I want to not have it in the post page.
For now I’m using a
frontmatter.excerpt
instead of the classic way to do it, but it makes editing less cool (inlining Markdown in the frontmatter). It's a workaround.Is it a feature that could be considered?
The text was updated successfully, but these errors were encountered: