From 6bcc2d8cf24d62ce7a48895cc8ef085f8bc71e4d Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Wed, 2 Apr 2014 16:33:31 -0700 Subject: [PATCH] Expose titles in navigation of current nodes --- lib/parse/navigation.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/parse/navigation.js b/lib/parse/navigation.js index abe0ee217..29b1a0c7d 100644 --- a/lib/parse/navigation.js +++ b/lib/parse/navigation.js @@ -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('.'),