[www] renderHome signature changed
This commit is contained in:
1 parent
50b3f7fbd5
commit
009205d858
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user