在 partials 目录新建 navigation.hbs

1
2
3
4
5
<ul class="nav" role="menu">
    {{#foreach navigation}}
    <li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="menuitem"><a href="{{url absolute="true"}}">{{label}}</a></li>
    {{/foreach}}
</ul>

相关资料: https://github.com/TryGhost/Ghost/issues/5162 https://github.com/TryGhost/Ghost/blob/master/core/server/helpers/tpl/navigation.hbs

Ghost 博客交流群