summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-17 15:08:26 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-17 15:08:26 +0100
commit46f017e68bd919c365311a78d02252a451afdc04 (patch)
tree12f85a454241ca430841269e13161422f494db4d /lib
parent1769ac2c2d93e3244774aee49ff83f6649e1ad1a (diff)
downloadgitbook-46f017e68bd919c365311a78d02252a451afdc04.zip
gitbook-46f017e68bd919c365311a78d02252a451afdc04.tar.gz
gitbook-46f017e68bd919c365311a78d02252a451afdc04.tar.bz2
Add type to file object in templating context
Diffstat (limited to 'lib')
-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 06b210e..6dcefa1 100644
--- a/lib/page/index.js
+++ b/lib/page/index.js
@@ -113,7 +113,8 @@ Page.prototype.getContext = function() {
return {
file: {
path: this.path,
- mtime: this.mtime
+ mtime: this.mtime,
+ type: this.type
},
page: {
title: article? article.title : null,