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:
parent
262c1614ed
commit
9966131100
7 changed files with 1671 additions and 12878 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue