diff --git a/html/home.html b/html/home.html index 0ad2833..34ebbe3 100644 --- a/html/home.html +++ b/html/home.html @@ -1,4 +1,5 @@ -

RHOvision Open Collective Community

+ +

RHOvision Open Collective Community

The RHO Vision is many things to maqny people.

Open Collective activities

-

Top Projects

+

Active Projects

diff --git a/src/md2html.js b/src/md2html.js index f1dab95..6439169 100644 --- a/src/md2html.js +++ b/src/md2html.js @@ -1,9 +1,12 @@ // usage: node src/md2html.js pages/home.md >html/home.html let filename = process.argv[2] fs = require('fs') +const header = ` +` data = fs.readFileSync(filename, 'utf8') +const footer = "" const markdown = data // console.log(data); const gfm = require('cmark-gfm-js'); -let html = gfm.convert(markdown); +let html = header + gfm.convert(markdown) + footer ; console.log(html) diff --git a/web.js b/web.js index feda502..64c3189 100644 --- a/web.js +++ b/web.js @@ -6,7 +6,7 @@ const requestListener = function (req, res) { const queryObject = url.parse(req.url, true).query; //console.log(req.url); page = queryObject.page ? queryObject.page : "home";; - console.log(page); + //console.log(page); res.writeHead(200, { 'Content-Type': 'text/html' }); fs.readFile('html/'+page+'.html', 'utf8', (err, data) => { if (err) {