Closed k-allika closed 4 years ago
'navbar_light' parameter available in base.tmpl but missing in conf.py
It’s documented in the comment above THEME_CONFIG
.
# Theme configuration. Fully theme-dependent. (translatable)
# Examples below are for bootblog4.
# bootblog4 supports: featured_large featured_small featured_on_mobile
# featured_large_image_on_mobile featured_strip_html sidebar
# bootstrap4 supports: navbar_light (defaults to False)
An option to select navbar background to primary instead of only light or dark.
We can’t add navbar_bg
like you proposed, since that breaks people with navbar_light
. And it would be good to support all available colors.
I created a pull request, #3444, which implements a more flexible, backwards-compatible navbar_custom_bg
option.
It’s documented in the comment above THEME_CONFIG.
Apologies. I overlooked.
I created a pull request, #3444, which implements a more flexible, backwards-compatible navbar_custom_bg option.
Thank you :-)
Environment
Python Version: 3.8.3
Nikola Version: 8.1.1
Operating System: Windows 10
Part 1: Possible bug
Description: 'navbar_light' parameter available in base.tmpl but missing in conf.py
base.tmpl has the following option to select light or dark navbar themes:
However, the option to specify this is missing in conf.py
I added the following line to the THEME_CONFIG section of my conf.py and it worked as expected. Should this be included in conf.py as default?
Part 2
Enhancement request
An option to select navbar background to primary instead of only light or dark.
Currently, with the options above, users can select
navbar-light bg-light
ornavbar-dark bg-dark
. But most boostrap/bootswatch themes offer three navbar options, so in case I want to select the third optionnavbar-dark bg-primary
, I'll have to manually tweak the base.tmpl. Would it be ideal to include this option in conf.py as well?Following changes to conf.py and base.tmpl seem to work for me. May be someone can do a better coding if you decide to add this option. conf.py
base.tmpl