diff options
author | Sheogorath | 2018-06-24 13:37:46 +0200 |
---|---|---|
committer | Sheogorath | 2018-06-24 13:40:18 +0200 |
commit | 23c33c0c046a9a27b2a31d334f6f818d8b1b3459 (patch) | |
tree | 8aa6c2b06156ddfb5b406d6450ffb4e030b9a4d8 /lib | |
parent | b242b59db4b27bac345d98f982def7c54955c84c (diff) |
Rename HackMD view to CodiMD
Even when it looks a bit weird in first place to rename all internals
step by step, it makes sense to do so, because we run into confusion
afterwards.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | lib/config/default.js | 2 | ||||
-rw-r--r-- | lib/config/index.js | 2 | ||||
-rw-r--r-- | lib/response.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/config/default.js b/lib/config/default.js index 8e71029e..5c39a4da 100644 --- a/lib/config/default.js +++ b/lib/config/default.js @@ -41,7 +41,7 @@ module.exports = { defaultNotePath: './public/default.md', docsPath: './public/docs', indexPath: './public/views/index.ejs', - hackmdPath: './public/views/hackmd.ejs', + codimdPath: './public/views/codimd.ejs', errorPath: './public/views/error.ejs', prettyPath: './public/views/pretty.ejs', slidePath: './public/views/slide.ejs', diff --git a/lib/config/index.js b/lib/config/index.js index 760d94a1..8705b10b 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -175,7 +175,7 @@ config.tmpPath = path.join(appRootPath, config.tmpPath) config.defaultNotePath = path.join(appRootPath, config.defaultNotePath) config.docsPath = path.join(appRootPath, config.docsPath) config.indexPath = path.join(appRootPath, config.indexPath) -config.hackmdPath = path.join(appRootPath, config.hackmdPath) +config.codimdPath = path.join(appRootPath, config.codimdPath) config.errorPath = path.join(appRootPath, config.errorPath) config.prettyPath = path.join(appRootPath, config.prettyPath) config.slidePath = path.join(appRootPath, config.slidePath) diff --git a/lib/response.js b/lib/response.js index d1e5e15c..e256d472 100644 --- a/lib/response.js +++ b/lib/response.js @@ -119,7 +119,7 @@ function responseHackMD (res, note) { 'Cache-Control': 'private', // only cache by client 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling }) - res.render(config.hackmdPath, { + res.render(config.codimdPath, { url: config.serverURL, title: title, useCDN: config.useCDN, |