diff --git a/app.js b/app.js index f3a97d7..43f6b5d 100644 --- a/app.js +++ b/app.js @@ -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(); }); diff --git a/public/less/site.less b/public/less/site.less index 8e596f5..8debd26 100644 --- a/public/less/site.less +++ b/public/less/site.less @@ -97,6 +97,13 @@ color:lighten(@brand-danger, 8%); } +/* Type */ +.h1, .h2, .h3 { + margin-top: @line-height-computed; + margin-bottom: (@line-height-computed / 2); +} + + /* Task stats boxes */ .task-stats { margin-bottom:10px; diff --git a/view/new.html b/view/new.html index a9f286b..30c908c 100644 --- a/view/new.html +++ b/view/new.html @@ -6,7 +6,7 @@