diff --git a/index.js b/index.js index dd88539..4fea7d3 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,8 @@ path = require("path"), showdown = require("showdown"), mkthtml = new showdown.Converter() +mkthtml.setFlavor("github") + const PORT = process.env.PORT || 8080 var dataPath = path.join(__dirname, 'data') @@ -73,6 +75,7 @@ app.get('/post/:post*', (req, res) => { var html = fs.readFileSync(path.join(__dirname, 'resources/postPage.html')).toString() html = html.replace('{POST}', post) + html = html.replace('{POST_TITLE}', req.params.post) res.send(html) }) \ No newline at end of file diff --git a/resources/postPage.html b/resources/postPage.html index 356241e..af27a8b 100644 --- a/resources/postPage.html +++ b/resources/postPage.html @@ -8,6 +8,11 @@
- {POST} +