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

Placement of

Started by Muut Archive 11 years ago · 1 replies · 240 views
11 years ago

in the tutorial for building a theme there's instructions to add <h1 style="color:{{ config.themes.antimatter.color }}">{{ config.themes.antimatter.info }}</h1> to the theme, but it doesn't specify where. I tried putting it in the .yaml file (didn't go there) and into the page.md file (didn't go there either). Where does it go?

11 years ago

You would put that in a twig template somewhere. Really this is just an example of how to configure a setting, then use that setting to affect rendering.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago