diff --git a/build.js b/build.js index 0f7e4b9e..e3d10d72 100644 --- a/build.js +++ b/build.js @@ -111,12 +111,22 @@ var metalsmith = Metalsmith(__dirname) })) ) // Render HTML - .use(branch() - .pattern('**/*.html') + .use(branch('**/*.html') + // Render LaTeX inlined into the HTML .use(renderTeX()) + // Assign a mimir-specific layout to the mimir subdirectory + .use(branch('research/mimir/*.html') + .use(function(files, smith, done) { + for(i in files){ files[i].layout = 'mimir.hbs' } + done(); + }) + ) + // Render outer layouts .use(layouts({ engine: "handlebars", - default: "default.hbs" + default: "default.hbs", + directory: "layouts", + partials: "partials" })) ) // Validate diff --git a/layouts/default.hbs b/layouts/default.hbs index 1692d9cd..a14f0049 100644 --- a/layouts/default.hbs +++ b/layouts/default.hbs @@ -1,58 +1,45 @@ - - - - - The ODIn Lab: {{ title }} - {{! Files will be fingerprinted for cache busting }} - {{! Access their filenames with the fingerprint variable }} - - - -