Skip to content
Permalink
Browse files

Remove a reduntant use of the domain name

  • Loading branch information...
thesephist committed Oct 6, 2018
1 parent 9879e46 commit 227f4e105a8a41a4fd6c85831afd4bb037ccd607
Showing with 2 additions and 3 deletions.
  1. +0 −1 config.js
  2. +1 −1 src/main.js
  3. +1 −1 static/template.html
@@ -1,6 +1,5 @@
module.exports = {
PORT: 3000,
DATABASE: 'db',
DOMAIN: 'linus.zone',
}

@@ -76,7 +76,7 @@ app.get('/:id', async (req, res) => {
const record = await storage.get(rid);
if (record.isNote()) {
res.send(tpl({
title: `${record.id} | ${Config.DOMAIN}`,
title: record.id,
content: record.render(),
}));
console.log(`Rendered note ${record.id} as HTML`);
@@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>%title%</title>
<title>%title% | linus.zone</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="/static/css/main.css" />
</head>

0 comments on commit 227f4e1

Please sign in to comment.
You can’t perform that action at this time.