fix bug where navbar burger button didn't always revert to the correct light one

This commit is contained in:
Dean Attali 2020-09-16 23:47:06 +00:00
parent 040469e9ed
commit 58183b8a15
2 changed files with 7 additions and 0 deletions

View File

@ -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 %}

View File

@ -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");
}
},