I have what I think is a simple question, but I haven’t been able to figure it out by looking at the docs.
The default pagination at my Ghost-hosted blog at Coding Horror (Page 2) currently looks like this, with blog post date, and title, but no excerpt:
Per the pagination docs, I guess I need to override the pagination helper to get excerpts?
You can override this by placing a file called pagination.hbs
in the partials directory of your theme.
What would a default pagination template look like with an excerpt?
Hey @codinghorror Nice to see you here!
The pagination helper is used specifically to guide a user between a collection of posts - e.g. if you have 20 posts, and 10 posts per page, the pagination helper could output
you're on page 1. [go to page 2](/page/2)
To solve your issue, my first suggestion would be to take a look at index.hbs
and see where the logic for outputting the post content is (as it does in the home page). I’m guessing there’s a conditional block there.
If you’re having trouble, feel free to post the file
2 Likes
My gosh, you’re right! This was a stray CSS rule suppressing the content, only taking effect on the pagination section!
.paged .post-content
{
display: none;
}
Thanks for the nudge, that was it!
2 Likes