Skip to content

Commit 23c33c0

Browse files
committed
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>
1 parent b242b59 commit 23c33c0

11 files changed

Lines changed: 22 additions & 22 deletions

File tree

lib/config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141
defaultNotePath: './public/default.md',
4242
docsPath: './public/docs',
4343
indexPath: './public/views/index.ejs',
44-
hackmdPath: './public/views/hackmd.ejs',
44+
codimdPath: './public/views/codimd.ejs',
4545
errorPath: './public/views/error.ejs',
4646
prettyPath: './public/views/pretty.ejs',
4747
slidePath: './public/views/slide.ejs',

lib/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ config.tmpPath = path.join(appRootPath, config.tmpPath)
175175
config.defaultNotePath = path.join(appRootPath, config.defaultNotePath)
176176
config.docsPath = path.join(appRootPath, config.docsPath)
177177
config.indexPath = path.join(appRootPath, config.indexPath)
178-
config.hackmdPath = path.join(appRootPath, config.hackmdPath)
178+
config.codimdPath = path.join(appRootPath, config.codimdPath)
179179
config.errorPath = path.join(appRootPath, config.errorPath)
180180
config.prettyPath = path.join(appRootPath, config.prettyPath)
181181
config.slidePath = path.join(appRootPath, config.slidePath)

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function responseHackMD (res, note) {
119119
'Cache-Control': 'private', // only cache by client
120120
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
121121
})
122-
res.render(config.hackmdPath, {
122+
res.render(config.codimdPath, {
123123
url: config.serverURL,
124124
title: title,
125125
useCDN: config.useCDN,

public/views/codimd.ejs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<%- include codimd/head %>
6+
</head>
7+
8+
<body>
9+
<%- include codimd/header %>
10+
<%- include codimd/body %>
11+
<%- include codimd/footer %>
12+
<%- include codimd/foot %>
13+
</body>
14+
15+
</html>

public/views/error.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
<html lang="en">
33

44
<head>
5-
<%- include hackmd/head %>
5+
<%- include codimd/head %>
66
<link rel="stylesheet" href="<%- url %>/css/center.css">
77
</head>
88

99
<body>
10-
<%- include hackmd/header %>
10+
<%- include codimd/header %>
1111
<div class="container-fluid text-center">
1212
<div class="vertical-center-row">
1313
<h1><%- code %> <%- detail %> <small><%- msg %></small></h1>
1414
</div>
1515
</div>
16-
<%- include hackmd/footer %>
16+
<%- include codimd/footer %>
1717
</body>
1818

19-
</html>
19+
</html>

0 commit comments

Comments
 (0)