From 009205d8589dbb1ec8e35534b216e415c082444f Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sun, 15 Oct 2017 02:09:57 +0300 Subject: [PATCH] [www] renderHome signature changed --- src/render/home.js | 2 +- src/routes/home.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/home.js b/src/render/home.js index edcca347..874a9ffb 100644 --- a/src/render/home.js +++ b/src/render/home.js @@ -8,8 +8,8 @@ function getMeta(article) { } } -async function renderHome(path, page, pageSize) { const articles = await getArticleListComponent(path, 1, pageSize) +async function renderHome(path, pageSize) { const Component = (
diff --git a/src/routes/home.js b/src/routes/home.js index 3fe335c1..63c395bb 100644 --- a/src/routes/home.js +++ b/src/routes/home.js @@ -5,7 +5,7 @@ const getPathWithNoTrailingSlash = require('../lib/url').getPathWithNoTrailingSl function getHome(pageSize) { return get('/', async ctx => { const path = getPathWithNoTrailingSlash(ctx.path) - ctx.body = await renderHome(path, 1, pageSize) + ctx.body = await renderHome(path, pageSize) }) }