finally added a damn favicon

pull/32/head
Ro 4 years ago
parent dca45315f4
commit 634011059d

1
.gitignore vendored

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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Loading…
Cancel
Save