Skip to content

Commit

Permalink
修复菜单排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Dec 19, 2018
1 parent f389b29 commit 27f8c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions partials/site-nav.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</#if>
<@commonTag method="menus">
<ul class="nav" role="menu">
<#list menus as menu>
<li class="nav-${menu.menuName}" role="menuitem"><a href="${menu.menuUrl}">${menu.menuName}</a></li>
<#list menus?sort_by('menuSort') as menu>
<li class="nav-${menu.menuName}" role="menuitem"><a href="${menu.menuUrl}" target="${menu.menuTarget!}">${menu.menuName}</a></li>
</#list>
</ul>
</@commonTag>
Expand Down

0 comments on commit 27f8c1f

Please sign in to comment.