Use page title in the table of contents

This commit is contained in:
Dmitriy Simushev 2015-04-14 13:21:46 +00:00
parent 687723f617
commit 42db1e480d

View File

@ -2,7 +2,7 @@
<ul class="nav nav-stacked nav-left-indent">
{{#each this}}
<li>
<a href="{{@root.baseUrl}}/{{path}}">{{name}}</a>
<a href="{{@root.baseUrl}}/{{path}}">{{#if file.title}}{{file.title}}{{else}}{{name}}{{/if}}</a>
{{! Render nested menu levels}}
{{> menu children}}
</li>