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

Site title seems stuck at 'Grav' in Bootstrap example

Started by Muut Archive 10 years ago · 4 replies · 496 views
10 years ago

The Grav docs explain how to make a Bootstrap theme. After following the directions I have it working, but I can't change the site title from 'Grav'. I have reset it in /user/config/site.yaml, using title: XXXX, with no effect; and then I have done the same in /user/config/site.yaml, still with no effect, even when I deleted the cache. Have I missed something?

10 years ago

I really need to update the theme tutorial. It's a bit out of date and I have a better example available to use that has improvements from Antimatter.

My recommendation for the title is something like:

TWIG
<title>{% if header.title %},{{ header.title|e('html') }} | {% endif %},{{ site.title|e('html') }}</title>

So it uses the page title if available, else the site title...

10 years ago

Sorry, but that's exactly what I've got. It's not the page title that's the issue, but the site title. Im going to upload an image if I can Snap of title problem The page title is 'How to get here', that's fine. But the site title should be something like 'Thomas Green's website' (how original) but as you see it's stuck at Grav.

10 years ago

Good timing! Unfortunately I can't find those files in the theme I've made, following directions in the documentation. Guess I'll wait for the update. But many thanks to you, @flaviocopes, it's only possible for people like me to build sites in Grav because of people like 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 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago