File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/compiler/contentModel/models Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,20 @@ const Settings = require('../../../settings')
22const contentTypes = require ( '../contentTypes' )
33const parseTemplate = require ( '../parseTemplate' )
44
5- const createHomepage = ( fsObject ) => {
5+ const createHomepage = ( fsObject = { } ) => {
66 const permalink = Settings . getSettings ( ) . permalinkPrefix
77
88 const metadata = fsObject ?
99 parseTemplate ( fsObject , { permalink } ) :
1010 { attributes : { } }
1111
12+ const type = fsObject . extension === '.html' ? 'raw-index-html' : 'basic'
13+
1214 return {
1315 ...( fsObject || { } ) ,
1416 type : contentTypes . HOMEPAGE ,
1517 data : {
16- type : metadata . type || 'basic' ,
18+ type : metadata . type || type ,
1719 title : metadata . title || '' ,
1820 content : metadata . content || '' ,
1921 mentions : metadata . mentions || [ ] ,
You can’t perform that action at this time.
0 commit comments