mirror of
https://github.com/seigler/dashdev-website
synced 2025-07-26 22:36:09 +00:00
add and include frontpage .hbs file and change background color inside .hbs
This commit is contained in:
parent
27e371d2fb
commit
543713440f
3 changed files with 62 additions and 2 deletions
10
build.js
10
build.js
|
@ -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.*`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue