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

Page summary triggering

Started by Muut Archive 10 years ago · 5 replies · 390 views
10 years ago

I'd like to change <h1> html tag for page summary. Does it exist an option in system.yaml?

10 years ago

The page summary is rendered in an h1 tag? This part is controlled by the theme, not by Grav itself. Which theme are you using?

You need to detect which twig template renders that summary, and change the HTML code that wraps it.

10 years ago

I use a theme created by myself. The {{ page.summary }} in .twig file is rendered as "<h1>my summary</h1>". I don't be able to find where is this"<h1>" in my theme.

10 years ago

really need to see:

a) your page content .md file
b) your twig that renders the page

Perhaps you can put together a GIST with these files?

10 years ago

I found the problem in .md file: I forgot to "put this [summary separator] in your content with blank lines above and below". Sorry!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago