Question on theme development

I am interested in working with bootstrap + Grav and am curious if there is a reason why I would not want to add bootstrap code inside my template files.

For example I am setting up a hidden global folder to create widgets for different places in my theme like the header area. In my inheritance theme I am modifying the the base.html.twig file like the following which includes the bootstrap column classes. I am interested in any thoughts on setting things up this way and if it may be something that I should not be doing.

{{ page.find('/_global/HeaderWidget').content }}

Thank You.

There is no “one way” of doing things with themes, and I don’t see you doing anything wrong here.

You might also want to check other bootstrap-based themes such as https://github.com/getgrav/grav-theme-bootstrap and https://github.com/giansi/gravstrap-theme

flaviocopes,

Thanks, that is a good idea.