summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-06-25 13:08:36 +0200
committerAlan Pearce2017-06-25 13:08:36 +0200
commitb959fe891cc975038a1d34b51192365b55cb7e7e (patch)
treee563b20b7277bb882a02d9644807297dfcb248f2
parenta7960192e2a268c02643a9374adb4d8798c15d5a (diff)
downloadhomestead-b959fe891cc975038a1d34b51192365b55cb7e7e.tar.lz
homestead-b959fe891cc975038a1d34b51192365b55cb7e7e.tar.zst
homestead-b959fe891cc975038a1d34b51192365b55cb7e7e.zip
fix(responders): replace <main> from layout
-rw-r--r--src/responders.js4
1 files 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)))