Skip to content

Commit

Permalink
fix bug where navbar burger button didn't always revert to the correc…
Browse files Browse the repository at this point in the history
…t light one
  • Loading branch information
daattali committed Sep 16, 2020
1 parent 040469e commit 58183b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
2 changes: 2 additions & 0 deletions assets/js/beautifuljekyll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
},

Expand Down

0 comments on commit 58183b8

Please sign in to comment.