Skip to content

Commit

Permalink
Fix navbar issue on no menu
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Dec 14, 2023
1 parent 8b7eb03 commit ec89a6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/default/navbar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<!-- Menu -->
<ul class="hide">
{% assign name_page = "" %}
{% assign pages = site.pages | concat: site.data.menu | sort: 'position' %}
{% assign emptyArray = '' | split: '' %}
{% assign menus = site.data.menu | default: emptyArray %}
{% assign pages = site.pages | concat: menus | sort: 'position' %}
{% for page in pages %}
{% unless page.title == null or page.hide or name_page contains page.title %}
<li class="separator"> | </li>
Expand Down

0 comments on commit ec89a6d

Please sign in to comment.