Added express-brute-loki, UI improvements, error page

This commit is contained in:
NGPixel
2016-08-23 00:25:36 -04:00
parent 24f90d4a17
commit aa740dea7a
10 changed files with 105 additions and 30 deletions

View File

@@ -11,10 +11,11 @@ router.get('/', (req, res) => {
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require("fs"));
fs.readFileAsync("repo/Home.md", "utf8").then(function(contents) {
fs.readFileAsync("repo/Storage/Redis.md", "utf8").then(function(contents) {
let pageData = mark.parse(contents);
if(!pageData.title) {
pageData.title = 'Gollum';
pageData.title = 'Redis';
pageData.subtitle = 'An open source, in-memory data structure store, used as database, cache and message broker.'
}
res.render('pages/view', { pageData });
});