1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 13:19:42 +02:00

Show parent page title (#14)

* Fix

show parent page

* Update pages.js

* fix

* merge
This commit is contained in:
cabad11 2018-12-09 21:45:28 +03:00 committed by GitHub
parent 262c1614ed
commit 9966131100
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1671 additions and 12878 deletions

View file

@ -43,8 +43,10 @@ router.get('/page/:id', async (req, res, next) => {
try {
let page = await Pages.get(pageId);
let pageParent = await page.parent;
res.render('pages/page', {
page
page, pageParent
});
} catch (error) {
res.status(404);