Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
fix: Make it possible to use nested pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Apr 26, 2018
1 parent a94d678 commit 5e533ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ metalsmith(__dirname)
.use(layouts({
directory: path.join(__dirname, '../', settings.sources.handlebars, 'layouts'),
default: 'default.hbs',
pattern: '*.hbs'
pattern: '**/*.hbs'
}))

// Render handlebars content pages
Expand All @@ -57,7 +57,7 @@ metalsmith(__dirname)
}))

// Only build HTML files
.use(filter('*.html'))
.use(filter(['**/*.html', 'handlebars']))

// Finally build files
.build(err => {
Expand Down
3 changes: 2 additions & 1 deletion build/webpack/config.output.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ const configFile = require('../../baumeister.json');
export const output = {
path: isDevMode() ? path.join(__dirname, '../', mainDirectories.dev) : path.join(__dirname, '../', mainDirectories.prod),
filename: configFile.cacheBusting ? 'app/[name].[chunkhash].bundle.js' : 'app/[name].bundle.js',
chunkFilename: configFile.cacheBusting ? 'app/[name].[chunkhash].bundle.js' : 'app/[name].bundle.js'
chunkFilename: configFile.cacheBusting ? 'app/[name].[chunkhash].bundle.js' : 'app/[name].bundle.js',
publicPath: '/'
};
2 changes: 1 addition & 1 deletion build/webpack/config.plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const generalPlugins = [
if (!($1 in manifest.assets)) {
return `<!-- No ${$1} to be bundled -->`;
}
return /\.css/g.test($1) ? `<link href="${manifest.assets[$1]}" rel="stylesheet">` : `<script src="${manifest.assets[$1]}"></script>`;
return /\.css/g.test($1) ? `<link href="/${manifest.assets[$1]}" rel="stylesheet">` : `<script src="/${manifest.assets[$1]}"></script>`;
});
}
},
Expand Down

0 comments on commit 5e533ba

Please sign in to comment.