summaryrefslogtreecommitdiffstats
path: root/lib/page
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-17 13:12:34 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-17 13:12:34 +0100
commitb6104c64fecb72c9f40554600d456c27dbd18be8 (patch)
tree0c48caf160f8b8a2c54f4cfa76c0f586364dbc8b /lib/page
parente95678cf3a3cfbcbfa8b64ca16c4030417187e88 (diff)
downloadgitbook-b6104c64fecb72c9f40554600d456c27dbd18be8.zip
gitbook-b6104c64fecb72c9f40554600d456c27dbd18be8.tar.gz
gitbook-b6104c64fecb72c9f40554600d456c27dbd18be8.tar.bz2
Use same json for page context and json builds
Diffstat (limited to 'lib/page')
-rw-r--r--lib/page/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/page/index.js b/lib/page/index.js
index 342830a..06b210e 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -118,7 +118,8 @@ Page.prototype.getContext = function() {
page: {
title: article? article.title : null,
next: next? next.getContext() : null,
- previous: prev? prev.getContext() : null
+ previous: prev? prev.getContext() : null,
+ content: this.content
}
};
};