mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
minor fix on index
This commit is contained in:
2
bin/www
2
bin/www
@@ -12,7 +12,7 @@ var http = require('http');
|
|||||||
* Get port from environment and store in Express.
|
* Get port from environment and store in Express.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var port = normalizePort(process.env.PORT || '80');
|
var port = normalizePort(process.env.PORT || '3000');
|
||||||
app.set('port', port);
|
app.set('port', port);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ function getPosts(callback){
|
|||||||
|
|
||||||
jsdom.env(data,["http://code.jquery.com/jquery.js"],function (err, window) {
|
jsdom.env(data,["http://code.jquery.com/jquery.js"],function (err, window) {
|
||||||
|
|
||||||
post.filename = file;
|
post.fileName = file;
|
||||||
post.title = window.$("#title").text();
|
post.title = window.$("#title").text();
|
||||||
post.date = window.$("#date").text();
|
post.date = window.$("#date").text();
|
||||||
post.intro = window.$("#intro").text();
|
post.intro = window.$("#intro").text();
|
||||||
|
|||||||
Reference in New Issue
Block a user