From b959fe891cc975038a1d34b51192365b55cb7e7e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 25 Jun 2017 13:08:36 +0200 Subject: fix(responders): replace
from layout --- src/responders.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/responders.js b/src/responders.js index 0cc6da8..778580c 100644 --- a/src/responders.js +++ b/src/responders.js @@ -53,7 +53,7 @@ module.exports = { ctx.body = templates .layout() .pipe(rheo()) - .inner('main', showPage('post')) + .outer('main', showPage('post')) .inner('article h1', rheo(post.data.get('title'))) .inner('article main', rheo(post.body)) .pipe(setTitle(config.site.title, post.data.get('title'))) @@ -65,7 +65,7 @@ module.exports = { ctx.body = templates .layout() .pipe(rheo()) - .inner('main', showPage('taxon')) + .outer('main', showPage('taxon')) .inner('h1', rheo(config.site.title)) .inner('.posts', function (postsTemplate) { return taxonItems.pipe(postsTemplate.map(renderPostListItem(ctx))) -- cgit 1.4.1