mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-25 10:15:40 -05:00
feat: add showQuickLinks boolean
This commit is contained in:
@@ -58,6 +58,12 @@ router.get('/:slug', async (request, response, next) => {
|
||||
// Convert the content into HTML
|
||||
content = marked(content);
|
||||
|
||||
// A boolean to show the quick links grid or not.
|
||||
let showQuickLinks = false;
|
||||
if (pageName === 'welcome') {
|
||||
showQuickLinks = true;
|
||||
}
|
||||
|
||||
response.render('docs/docs', {
|
||||
layout: 'main',
|
||||
locale,
|
||||
@@ -65,6 +71,7 @@ router.get('/:slug', async (request, response, next) => {
|
||||
content,
|
||||
currentPage: request.params.slug,
|
||||
missingInLocale,
|
||||
showQuickLinks
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user