1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-08-09 15:35:25 +02:00
This commit is contained in:
Куштанов Руслан Камилевич 2018-12-08 01:53:16 +03:00
parent 71842a6c35
commit 481066f039
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -8,7 +8,7 @@
</a>
{% if page._parent %}
<a href="/page/{{ page._parent }}" class="page__header-nav">
Parent {{ parentTitle }}
Parent {{ pageParent.title }}
</a>
{% endif %}
<time class="page__header-time">