fongandrew / hydeout

A refreshed version of Hyde for Jekyll 3.x and 4.x
https://fongandrew.github.io/hydeout/
Other
591 stars 744 forks source link

Show excerpt settings #67

Closed theBrandonWu closed 5 years ago

theBrandonWu commented 5 years ago

I couldn't figure out how to only show excerpts in the index page. Do I need to manually create excerpts on each post, or would it be possible for the theme to automatically use the first paragraph as excerpts?

jtutmaher commented 5 years ago

@theBrandonWu not sure if this is still helpful given the timing. The 2 ways i've found in the documentation are to either leverage the excerpt_separator (https://github.com/fongandrew/hydeout/blob/master/_posts/2012-02-03-layout-excerpt-generated.md) or define the excerpt explicitly (https://github.com/fongandrew/hydeout/blob/master/_posts/2012-02-04-layout-excerpt-defined.md).

In the former case, you could define the separator similar to the documentation and then insert it after the first paragraph of you post in the .md file. This should allow the frontend to parse the excerpt and display it in pagination on the homepage (rather than the content). I didn't see any automatic excerpt generation referenced, which makes me think that manually inserting the excerpt_separator or manually defining the excerpt are (currently) the only two supported methods.

fongandrew commented 5 years ago

Sorry for the long response time but @jtutmaher has it right.