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

How to limit the text lengh of a blog summary

Started by Delo 1 year ago · 7 replies · 337 views
1 year ago

Topic title says you want to limit it. Then you ask how to not show it. Which exactly behaviour do you want? 🤔

1 year ago

@Delo, we cannot see anything from here and are left to guessing... which is not ideal.

Please help the community help you, by providing proper information:

  • What have your tried?
  • Which sections of the documentation about "summary" have you consulted?
  • Show the Twig snippet that displays each blog item in the list
  • Show the content of the page (frontmatter + markdown)

Please use block quotes (tripple backticks ```) to embed code and content.

last edited 06/16/25 by pamtbaau
1 year ago

imo s/he meant limiting length of text like this example
make this
HELLO THIS IS A LONG TEXT EXAMPLE WHICH I WANT TO LIMIT
to this
HELLO THIS IS A LONG TEXT EX...

like limiting it to 30 character and add 3 dots to end when 30+ character.
idk how to do that for a theme but it can be solved with twig.

1 year ago

BTW i also like to use bike, i used to go to work with it which is 10km away :) and your site looks good.

1 year ago

@Delo, It has been 8 days since your last reply. Any progress you would like to share?

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Sebadamus, 2 days ago
2 63 20 hours ago
Themes & Styling · by martynfoster735, 4 days ago
1 155 3 days ago
Themes & Styling · by Justin Young, 2 weeks ago
1 218 2 weeks ago
Themes & Styling · by Slebeig, 1 month ago
4 348 1 month ago
Themes & Styling · by Pedro M, 3 months ago
4 703 3 months ago