mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-10-03 20:20:35 +00:00
Add type to file object in templating context
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user