From 46f017e68bd919c365311a78d02252a451afdc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 17 Feb 2016 15:08:26 +0100 Subject: [PATCH] Add type to file object in templating context --- lib/page/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/page/index.js b/lib/page/index.js index 06b210ea3..6dcefa117 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,