feat: analytics code rendering

This commit is contained in:
Nick
2019-06-23 22:57:04 -04:00
parent 537551874b
commit 2870da0e9e
21 changed files with 175 additions and 118 deletions

View File

@@ -153,6 +153,7 @@ module.exports = async () => {
company: WIKI.config.company
}
res.locals.langs = await WIKI.models.locales.getNavLocales({ cache: true })
res.locals.analyticsCode = await WIKI.models.analytics.getCode({ cache: true })
next()
})