diff --git a/book.pdf b/book.pdf new file mode 100644 index 000000000..2ec0c28e9 Binary files /dev/null and b/book.pdf differ diff --git a/lib/output/website.js b/lib/output/website.js index c1b0a6c91..d48055002 100644 --- a/lib/output/website.js +++ b/lib/output/website.js @@ -206,7 +206,6 @@ WebsiteOutput.prototype.finish = function() { // Templates are stored in `_layouts` folders WebsiteOutput.prototype.render = function(tpl, context) { var filename = this.templateName(tpl); - context = _.extend(context, { template: { // Same template but in the default theme @@ -218,7 +217,9 @@ WebsiteOutput.prototype.render = function(tpl, context) { plugins: { resources: this.resources - } + }, + + options: this.opts }); return Promise.nfcall(this.env.render.bind(this.env), filename, context);