Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

Resizing posts excerpts

Started by Muut Archive 12 years ago · 8 replies · 350 views
12 years ago

I'd like to know how can I use the skeleton blog, and, after that, how could I resize the excerpt of all posts on the blog, so that online few lines are displayed. Thanks.

12 years ago

Do you have the blog-skeleton downloaded and working? If so if you look at one of the blog posts, for example user/pages/01.blog/sunshine-in-the-hills/blog.md, you will notice that there is a paragraph, then a === divider. This signifies the page-break so the blog list view only displays a few lines, but the full blog post displays the whole post.

12 years ago

Ok, I'll try it now. Thanks for the help.

12 years ago

I just tried with a short post, both by adding '===' at the end or without it. But I still get (in the skeleton theme) a continue reading.
Is there a way to get rid of continue reading if the whole post is already shown?
cheers,

12 years ago

The === is to insert a readmore break, so if you have a short post, you should not add this. However, currently I don't think that the template automatically adds a continue reading button no matter what in the list view.

There may be a scenario where you still want to be able to view the page in a 'single' view. I will look at adding an optional header though to disable continue button in the list view. Sound good?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2893 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago