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>
This commit is contained in:
Sheogorath 2018-06-24 13:37:46 +02:00
parent b242b59db4
commit 23c33c0c04
No known key found for this signature in database
GPG key ID: 1F05CC3635CDDFFD
11 changed files with 22 additions and 22 deletions

View file

@ -41,7 +41,7 @@ module.exports = {
defaultNotePath: './public/default.md', defaultNotePath: './public/default.md',
docsPath: './public/docs', docsPath: './public/docs',
indexPath: './public/views/index.ejs', indexPath: './public/views/index.ejs',
hackmdPath: './public/views/hackmd.ejs', codimdPath: './public/views/codimd.ejs',
errorPath: './public/views/error.ejs', errorPath: './public/views/error.ejs',
prettyPath: './public/views/pretty.ejs', prettyPath: './public/views/pretty.ejs',
slidePath: './public/views/slide.ejs', slidePath: './public/views/slide.ejs',

View file

@ -175,7 +175,7 @@ config.tmpPath = path.join(appRootPath, config.tmpPath)
config.defaultNotePath = path.join(appRootPath, config.defaultNotePath) config.defaultNotePath = path.join(appRootPath, config.defaultNotePath)
config.docsPath = path.join(appRootPath, config.docsPath) config.docsPath = path.join(appRootPath, config.docsPath)
config.indexPath = path.join(appRootPath, config.indexPath) 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.errorPath = path.join(appRootPath, config.errorPath)
config.prettyPath = path.join(appRootPath, config.prettyPath) config.prettyPath = path.join(appRootPath, config.prettyPath)
config.slidePath = path.join(appRootPath, config.slidePath) config.slidePath = path.join(appRootPath, config.slidePath)

View file

@ -119,7 +119,7 @@ function responseHackMD (res, note) {
'Cache-Control': 'private', // only cache by client 'Cache-Control': 'private', // only cache by client
'X-Robots-Tag': 'noindex, nofollow' // prevent crawling 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
}) })
res.render(config.hackmdPath, { res.render(config.codimdPath, {
url: config.serverURL, url: config.serverURL,
title: title, title: title,
useCDN: config.useCDN, useCDN: config.useCDN,

15
public/views/codimd.ejs Normal file
View file

@ -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>

View file

@ -2,18 +2,18 @@
<html lang="en"> <html lang="en">
<head> <head>
<%- include hackmd/head %> <%- include codimd/head %>
<link rel="stylesheet" href="<%- url %>/css/center.css"> <link rel="stylesheet" href="<%- url %>/css/center.css">
</head> </head>
<body> <body>
<%- include hackmd/header %> <%- include codimd/header %>
<div class="container-fluid text-center"> <div class="container-fluid text-center">
<div class="vertical-center-row"> <div class="vertical-center-row">
<h1><%- code %> <%- detail %> <small><%- msg %></small></h1> <h1><%- code %> <%- detail %> <small><%- msg %></small></h1>
</div> </div>
</div> </div>
<%- include hackmd/footer %> <%- include codimd/footer %>
</body> </body>
</html> </html>

View file

@ -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>