finally added a damn favicon

This commit is contained in:
Ro 2020-07-09 15:15:00 -07:00
parent dca45315f4
commit 634011059d
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ node_modules/
/*
!public/
public/*
!public/favicon.ico
!public/assets
public/assets/*
!public/assets/images

View file

@ -8,7 +8,9 @@ var session = require('express-session');
var MemoryStore = require('memorystore')(session);
var flash = require('connect-flash');
var app = express();
//var request = require('request');
// favicon stuff
//app.use(favicon(path.join(__dirname, 'favicons', 'favicon.ico')));
// view engine setup
app.set('views', path.join(__dirname, './views'));
app.set('view engine', 'pug');
@ -23,8 +25,7 @@ app.use(
);
app.use(cookieParser());
app.use(express.static(path.join(__dirname, '../public'), { extensions: ['html'] }));
//app.use(express.static(path.join(__dirname, '../content')));
//app.use(express.static(path.join(__dirname, '../themes')));
app.use(
session({
store: new MemoryStore({

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB