diff --git a/lib/config/default.js b/lib/config/default.js index 8e71029..5c39a4d 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 760d94a..8705b10 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 d1e5e15..e256d47 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, diff --git a/public/views/codimd.ejs b/public/views/codimd.ejs new file mode 100644 index 0000000..7818346 --- /dev/null +++ b/public/views/codimd.ejs @@ -0,0 +1,15 @@ + + + + + <%- include codimd/head %> + + + + <%- include codimd/header %> + <%- include codimd/body %> + <%- include codimd/footer %> + <%- include codimd/foot %> + + + diff --git a/public/views/hackmd/body.ejs b/public/views/codimd/body.ejs similarity index 100% rename from public/views/hackmd/body.ejs rename to public/views/codimd/body.ejs diff --git a/public/views/hackmd/foot.ejs b/public/views/codimd/foot.ejs similarity index 100% rename from public/views/hackmd/foot.ejs rename to public/views/codimd/foot.ejs diff --git a/public/views/hackmd/footer.ejs b/public/views/codimd/footer.ejs similarity index 100% rename from public/views/hackmd/footer.ejs rename to public/views/codimd/footer.ejs diff --git a/public/views/hackmd/head.ejs b/public/views/codimd/head.ejs similarity index 100% rename from public/views/hackmd/head.ejs rename to public/views/codimd/head.ejs diff --git a/public/views/hackmd/header.ejs b/public/views/codimd/header.ejs similarity index 100% rename from public/views/hackmd/header.ejs rename to public/views/codimd/header.ejs diff --git a/public/views/error.ejs b/public/views/error.ejs index a40ed39..98c3c74 100644 --- a/public/views/error.ejs +++ b/public/views/error.ejs @@ -2,18 +2,18 @@ - <%- include hackmd/head %> + <%- include codimd/head %> - <%- include hackmd/header %> + <%- include codimd/header %>

<%- code %> <%- detail %> <%- msg %>

- <%- include hackmd/footer %> + <%- include codimd/footer %> - \ No newline at end of file + diff --git a/public/views/hackmd.ejs b/public/views/hackmd.ejs deleted file mode 100644 index 49084a6..0000000 --- a/public/views/hackmd.ejs +++ /dev/null @@ -1,15 +0,0 @@ - - - - - <%- include hackmd/head %> - - - - <%- include hackmd/header %> - <%- include hackmd/body %> - <%- include hackmd/footer %> - <%- include hackmd/foot %> - - -