style: mobile layout, tips, minor changes

This commit is contained in:
Ash Monty
2022-08-07 22:58:38 +02:00
parent 4dbd8411b6
commit 976a7861aa
8 changed files with 182 additions and 13 deletions

View File

@@ -92,8 +92,8 @@ router.get('/:subpath/:page', async (request, response, next) => {
const locale = response.locals.localeString;
const pageName = request.params.page;
renderData.currentPage = pageName;
const subpath = request.params.subpath;
renderData.currentPage = `${subpath}/${pageName}`;
const { content, MDLocale } = getRawDocs(locale, subpath, pageName);
if (content) {