Add small horizontal logo in nav when not on index.html

This commit is contained in:
Daniel Vassallo
2019-10-24 23:37:44 -07:00
parent a3dc0be30d
commit 1e421126cb
6 changed files with 42 additions and 35 deletions

View File

@@ -15,10 +15,12 @@ module.exports = (env, argv) => {
const pages = []
fs.readdirSync('./src/pages/').forEach(file => {
const page = file.split('.')[0]
pages.push(new HtmlWebPackPlugin({
template: './src/template.html',
filename: './' + file,
templateParameters() { return { header: 'header', footer: 'footer', page: file.split('.')[0] } }
templateParameters() { return { page: file.split('.')[0] } }
}))
})