diff --git a/package.json b/package.json index 738bc83..4f90403 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "passport": "^0.3.2", "passport-local": "^1.0.0", "pg": "^4.4.3", + "serve-favicon": "^2.3.0", "sqlite3": "^3.0.8", "winston": "^2.1.1" }, diff --git a/server.js b/server.js index 8dd3427..838929f 100644 --- a/server.js +++ b/server.js @@ -49,6 +49,9 @@ app.engine('hbs', hbs.express4({ })); app.set('view engine', 'hbs'); app.set('views', __dirname + '/views'); +var favicon = require('serve-favicon'); +app.use(favicon(__dirname + '/assets/favicon.ico')); // Put this before setting static dir. + app.use(express.static('assets')); app.use(require('cookie-parser')()); app.use(bodyParser.text()); // Use defaults for now, size limit is 100kb. diff --git a/views/index.hbs b/views/index.hbs index 13918e4..7095968 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -38,6 +38,7 @@ height: 100%; } +