[www] renderHome signature changed

This commit is contained in:
Roman Timashev committed 2017-10-15 02:09:57 +03:00
1 parent 50b3f7fbd5
commit 009205d858
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 = (
<div className="content content_thin">
+1 -1
View File
@@ -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)
})
}