Expose titles in navigation of current nodes

This commit is contained in:
Aaron O'Mullan
2014-04-02 16:33:31 -07:00
parent ad1867e4d8
commit 6bcc2d8cf2
+2
View File
@@ -45,6 +45,7 @@ function navigation(summary, files) {
// Add chapter mapping
mapping[chapter.path] = {
title: chapter.title,
prev: clean(prev),
next: clean(next),
level: (idx+1).toString(),
@@ -59,6 +60,7 @@ function navigation(summary, files) {
var next = (_idx+1 >= articles.length) ? nextChapter : clean(articles[_idx+1]);
mapping[article.path] = {
title: article.title,
prev: clean(prev),
next: clean(next),
level: [idx+1, _idx+1].join('.'),