Give pages unique H1s

This commit is contained in:
Rowan Manning
2013-10-03 14:49:36 +01:00
parent 872cabc0e0
commit 84d36d383b
6 changed files with 19 additions and 8 deletions

9
app.js
View File

@@ -54,12 +54,13 @@ function initApp (config, callback) {
app.express.locals({
lang: 'en',
year: (new Date()).getFullYear(),
version : pkg.version,
repo : pkg.homepage,
bugtracker : pkg.bugs,
rules : pkg.snifferules
version: pkg.version,
repo: pkg.homepage,
bugtracker: pkg.bugs,
rules: pkg.snifferules
});
app.express.use(function (req, res, next) {
res.locals.isHomePage = (req.path === '/');
res.locals.host = req.host;
next();
});