From 62d710122b30803dc48b96bf519797bd1046c790 Mon Sep 17 00:00:00 2001 From: Frank Boes Date: Sat, 14 Jan 2017 13:42:35 +0100 Subject: [PATCH] Fixing broken partials :( --- src/generator.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/generator.js b/src/generator.js index 2f396229..d2d95e88 100644 --- a/src/generator.js +++ b/src/generator.js @@ -132,7 +132,7 @@ var Generator = function(config) { fs.writeFileAsync(post.meta.urlObj.filename(), Mustache.render(Mustache.themeTemplates.postHtml, { post: post, config: config - }, Mustache.partials)) + }, Mustache.themePartials)) ]; if (config.specialFeatures.applenews) { promises.push(fs.writeFileAsync( post.meta.urlObj.filename('article', 'json'), JSON.stringify(appleNewsFormat(post), undefined, 2))); @@ -142,7 +142,7 @@ var Generator = function(config) { post: post, ampCss: Mustache.ampCss, config: config - }, Mustache.partials))); + }, Mustache.themePartials))); } if (config.specialFeatures.ajax) { promises.push(fs.writeFileAsync( post.meta.urlObj.filename('index', 'json'), JSON.stringify(post, undefined, 2))); @@ -333,7 +333,7 @@ var Generator = function(config) { if (config.specialFeatures.acceleratedmobilepages) { curPageObj.meta.AbsoluteUrlAmp = curUrlObj.absoluteUrl('amp'); } - promises.push(fs.writeFileAsync(indexUrl(curPageObj.currentUrl).filename(), Mustache.render(Mustache.themeTemplates.indexHtml, curPageObj, Mustache.partials))); + promises.push(fs.writeFileAsync(indexUrl(curPageObj.currentUrl).filename(), Mustache.render(Mustache.themeTemplates.indexHtml, curPageObj, Mustache.themePartials))); if (config.specialFeatures.acceleratedmobilepages) { curPageObj.ampCss = Mustache.ampCss; @@ -346,7 +346,7 @@ var Generator = function(config) { Mustache.render( Mustache.themeTemplates.ampIndexHtml, curPageObj, - Mustache.partials + Mustache.themePartials ) )); } @@ -393,7 +393,7 @@ var Generator = function(config) { promises.push(fs.writeFileAsync( indexUrl(config.htdocs.tag + '/index.html').filename(), Mustache.render(Mustache.themeTemplates.tagsHtml, { index: tagPages, config: config - }, Mustache.partials))); + }, Mustache.themePartials))); Promise .all(promises) @@ -441,7 +441,7 @@ var Generator = function(config) { index: authorPages, config: config }, - Mustache.partials) + Mustache.themePartials) )); Promise @@ -479,7 +479,7 @@ var Generator = function(config) { index: internal.currentIndex.getPosts(5), config: config }, - Mustache.partials + Mustache.themePartials ) ),