forked from cosmic/cosmic-web
single-quote strings
This commit is contained in:
parent
4f0a6bfba3
commit
40c96204f9
|
@ -29,7 +29,7 @@ app.get('/', async function (req, res) {
|
|||
const split = recent[i].split('\t')
|
||||
let link = split[1]
|
||||
let name = split[0].substr(1)
|
||||
content += "<a href=\"" + link + "\">" + lines + " <span class=\"dim\">>></span> " + name + "</a>\n"
|
||||
content += '<a href="' + link + '">' + lines + ' <span class="dim">>></span> ' + name + '</a>\n'
|
||||
lines--
|
||||
}
|
||||
res.render('index', { intro: intro, recent: content })
|
||||
|
@ -43,7 +43,7 @@ app.get('/log/', async function (req, res) {
|
|||
const split = list[i].split('\t')
|
||||
let link = split[1]
|
||||
let name = split[0].substr(1)
|
||||
content += "<a href=\"" + link + "\">" + String(lines).padStart(3, '0') + " <span class=\"dim\">>></span> " + name + "</a>\n"
|
||||
content += '<a href="' + link + '">' + String(lines).padStart(3, '0') + ' <span class="dim">>></span> ' + name + '</a>\n'
|
||||
lines--
|
||||
}
|
||||
const back = '<a href="/"><span class="dim"><<</span> BACK TO COSMIC VOYAGE</a>'
|
||||
|
|
Loading…
Reference in New Issue