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',
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',

View File

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

View File

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

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">
<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>
</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>