summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/config/default.js2
-rw-r--r--lib/config/index.js2
-rw-r--r--lib/response.js2
-rw-r--r--public/views/codimd.ejs15
-rw-r--r--public/views/codimd/body.ejs (renamed from public/views/hackmd/body.ejs)0
-rw-r--r--public/views/codimd/foot.ejs (renamed from public/views/hackmd/foot.ejs)0
-rw-r--r--public/views/codimd/footer.ejs (renamed from public/views/hackmd/footer.ejs)0
-rw-r--r--public/views/codimd/head.ejs (renamed from public/views/hackmd/head.ejs)0
-rw-r--r--public/views/codimd/header.ejs (renamed from public/views/hackmd/header.ejs)0
-rw-r--r--public/views/error.ejs8
-rw-r--r--public/views/hackmd.ejs15
11 files changed, 22 insertions, 22 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,
diff --git a/public/views/codimd.ejs b/public/views/codimd.ejs
new file mode 100644
index 00000000..7818346c
--- /dev/null
+++ b/public/views/codimd.ejs
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <%- include codimd/head %>
+</head>
+
+<body>
+ <%- include codimd/header %>
+ <%- include codimd/body %>
+ <%- include codimd/footer %>
+ <%- include codimd/foot %>
+</body>
+
+</html>
diff --git a/public/views/hackmd/body.ejs b/public/views/codimd/body.ejs
index 49604379..49604379 100644
--- a/public/views/hackmd/body.ejs
+++ b/public/views/codimd/body.ejs
diff --git a/public/views/hackmd/foot.ejs b/public/views/codimd/foot.ejs
index 4d73d05f..4d73d05f 100644
--- a/public/views/hackmd/foot.ejs
+++ b/public/views/codimd/foot.ejs
diff --git a/public/views/hackmd/footer.ejs b/public/views/codimd/footer.ejs
index e69de29b..e69de29b 100644
--- a/public/views/hackmd/footer.ejs
+++ b/public/views/codimd/footer.ejs
diff --git a/public/views/hackmd/head.ejs b/public/views/codimd/head.ejs
index 8dfef432..8dfef432 100644
--- a/public/views/hackmd/head.ejs
+++ b/public/views/codimd/head.ejs
diff --git a/public/views/hackmd/header.ejs b/public/views/codimd/header.ejs
index 8fc050b7..8fc050b7 100644
--- a/public/views/hackmd/header.ejs
+++ b/public/views/codimd/header.ejs
diff --git a/public/views/error.ejs b/public/views/error.ejs
index a40ed39c..98c3c74e 100644
--- a/public/views/error.ejs
+++ b/public/views/error.ejs
@@ -2,18 +2,18 @@
<html lang="en">
<head>
- <%- include hackmd/head %>
+ <%- include codimd/head %>
<link rel="stylesheet" href="<%- url %>/css/center.css">
</head>
<body>
- <%- include hackmd/header %>
+ <%- include codimd/header %>
<div class="container-fluid text-center">
<div class="vertical-center-row">
<h1><%- code %> <%- detail %> <small><%- msg %></small></h1>
</div>
</div>
- <%- include hackmd/footer %>
+ <%- include codimd/footer %>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/public/views/hackmd.ejs b/public/views/hackmd.ejs
deleted file mode 100644
index 49084a63..00000000
--- a/public/views/hackmd.ejs
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <%- include hackmd/head %>
-</head>
-
-<body>
- <%- include hackmd/header %>
- <%- include hackmd/body %>
- <%- include hackmd/footer %>
- <%- include hackmd/foot %>
-</body>
-
-</html>