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

Summary without content

Started by Muut Archive 10 years ago · 7 replies · 382 views
10 years ago

How do I output the text before the separator (===) in the teaser of the blog?

10 years ago

Seems you need to have more spaces around the divider:

TXT
This is summary

===

This is body

works fine. I'll look into fixing this.

10 years ago

Ok, I know the issue.. The problem is that if you put the === directly under the text, it becomes an H1 markdown header: https://daringfireball.net/projects/markdown/basics and the divider is lost. That is why you need to have a newline above and below the === divider. This way markdown leaves it alone, and Grav is able to treat is as the divider.

10 years ago

Oh, sorry. "The problem is that if you put the === directly under the text, it becomes an H1 markdown header" - it's really work (worked once after clearing the cache). Thank you!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago