fix bug where navbar burger button didn't always revert to the correct light one
This commit is contained in:
parent
040469e9ed
commit
58183b8a15
@ -31,6 +31,11 @@
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{% if page.navbar-extra %}
|
||||
{% for file in page.navbar-extra %}
|
||||
{% include {{ file }} %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if site.avatar and page.show-avatar != false %}
|
||||
|
@ -39,6 +39,8 @@ var BeautifulJekyllJS = {
|
||||
) / 1000);
|
||||
if (brightness <= 125) {
|
||||
$(".navbar").removeClass("navbar-light").addClass("navbar-dark");
|
||||
} else {
|
||||
$(".navbar").removeClass("navbar-dark").addClass("navbar-light");
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user