Add type to file object in templating context

This commit is contained in:
Samy Pessé
2016-02-17 15:08:26 +01:00
parent 1769ac2c2d
commit 46f017e68b
+2 -1
View File
@@ -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,