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

Use post excerpts in the blog post list #165

Merged
merged 5 commits into from
Jun 4, 2018
Merged

Conversation

Ana06
Copy link
Member

@Ana06 Ana06 commented Jun 4, 2018

Using the post.content we are just render the first 75 words without taken into account if they include things like code and titles, which shouldn't be in the post description.

With post excerpts we can decided what is shown for every blog post (using the <!--more--> tag):
https://jekyllrb.com/docs/posts/#post-excerpts

This is how it looks like now: 🎉
image

@Ana06 Ana06 requested a review from bgeuken June 4, 2018 09:40
@hennevogel
Copy link
Member

hennevogel commented Jun 4, 2018

Deploy preview for openbuildservice ready!

Built with commit 79ec876

https://deploy-preview-165--openbuildservice.netlify.com

Ana06 added 5 commits June 4, 2018 13:16
Using the post.content we are just render the first 75 words without
taken into account if they include things like code and titles, which
shouldn't be in the post description.

With post excerpts we can decided what is shown for every blog post:
https://jekyllrb.com/docs/posts/#post-excerpts
As we now decide what to render there, it doesn't makes sense to
truncate anymore.
An empty line is needed because of how Jekyll works.
In some cases it makes sense to have a longer excerpt.
@Ana06 Ana06 merged commit 724554a into openSUSE:gh-pages Jun 4, 2018
@Ana06 Ana06 deleted the excerpt branch April 30, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants