From efe62ea9e0a7b473b327021d4228aee041e952aa Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Thu, 22 Sep 2016 07:55:49 +0100 Subject: [PATCH] Add body classes --- controllers/about.js | 5 ++++- controllers/no-connection.js | 5 ++++- views/index.html | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/controllers/about.js b/controllers/about.js index 0c47ef5..e7b1955 100644 --- a/controllers/about.js +++ b/controllers/about.js @@ -1 +1,4 @@ -module.exports = (req, res) => res.render('about.html', { pageTitle: 'About' }); +module.exports = (req, res) => res.render('about.html', { + bodyClass: 'about', + pageTitle: 'About' +}); diff --git a/controllers/no-connection.js b/controllers/no-connection.js index 83b4ba4..ebee8ac 100644 --- a/controllers/no-connection.js +++ b/controllers/no-connection.js @@ -1 +1,4 @@ -module.exports = (req, res) => res.render('no-connection.html', { pageTitle: 'No Connection' }); +module.exports = (req, res) => res.render('no-connection.html', { + bodyClass: 'no-connection', + pageTitle: 'No Connection' +}); diff --git a/views/index.html b/views/index.html index d3b8b8e..f580192 100644 --- a/views/index.html +++ b/views/index.html @@ -8,7 +8,7 @@ - +