add and include frontpage .hbs file and change background color inside .hbs

This commit is contained in:
readme 2020-03-18 21:50:43 +01:00
parent 27e371d2fb
commit 543713440f
3 changed files with 62 additions and 2 deletions

View file

@ -86,6 +86,15 @@ var metalsmith = Metalsmith(__dirname)
reverse: true,
refer: false
},
frontpage: {
pattern: 'index.*',
sortBy: 'priority',
reverse: true,
refer: false,
metadata: {
layout: './../src/layouts/frontpage.hbs' // default is <root>/layouts
}
},
docs: {
pattern: 'docs/**/*',
sortBy: 'priority',
@ -138,6 +147,7 @@ var metalsmith = Metalsmith(__dirname)
// //engineOptions: {},
// pattern: `partials.hbs/**`
// }))
// define default (add additional rules in collections plugin )
.use(layouts({
//engineOptions: {},
pattern: `**/index.*`,