File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ module.exports = (files, pagesReq) => {
71
71
indexRoute : { } ,
72
72
pages,
73
73
templates,
74
+ parentTemplateFile,
74
75
}
75
76
76
77
// Add route to the templates object for easy access.
@@ -93,6 +94,8 @@ module.exports = (files, pagesReq) => {
93
94
switch ( page . file . ext ) {
94
95
case 'md' :
95
96
handler = markdownWrapper
97
+ // TODO figure out if this is redundant as data already added in
98
+ // glob-pages.
96
99
page . data = pagesReq ( `./${ page . requirePath } ` )
97
100
break
98
101
case 'html' :
@@ -144,6 +147,7 @@ module.exports = (files, pagesReq) => {
144
147
page,
145
148
pages,
146
149
templates,
150
+ parentTemplateFile,
147
151
}
148
152
} else {
149
153
parentRoute . childRoutes . push ( {
@@ -152,6 +156,7 @@ module.exports = (files, pagesReq) => {
152
156
page,
153
157
pages,
154
158
templates,
159
+ parentTemplateFile,
155
160
} )
156
161
}
157
162
} )
You can’t perform that action at this time.
0 commit comments