mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
fix: remove obsolete references to highlights
This commit is contained in:
parent
e52d965d02
commit
fe96ab2c35
1 changed files with 1 additions and 13 deletions
|
@ -37,19 +37,7 @@ const router = express.Router()
|
||||||
const md = markdownImport({ typographer: true })
|
const md = markdownImport({ typographer: true })
|
||||||
|
|
||||||
router.get('/', (req, res) => {
|
router.get('/', (req, res) => {
|
||||||
const highlights = []
|
res.render('index', { meta: getMetaFromReq(req) })
|
||||||
for (let index = 1; index < 4; index++) {
|
|
||||||
if (process.env[`KX_HIGHLIGHTS_${index}_NAME`] &&
|
|
||||||
process.env[`KX_HIGHLIGHTS_${index}_FINGERPRINT`]) {
|
|
||||||
highlights.push({
|
|
||||||
name: process.env[`KX_HIGHLIGHTS_${index}_NAME`],
|
|
||||||
description: process.env[`KX_HIGHLIGHTS_${index}_DESCRIPTION`],
|
|
||||||
fingerprint: process.env[`KX_HIGHLIGHTS_${index}_FINGERPRINT`]
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
res.render('index', { highlights, meta: getMetaFromReq(req) })
|
|
||||||
})
|
})
|
||||||
|
|
||||||
router.get('/apps', (req, res) => {
|
router.get('/apps', (req, res) => {
|
||||||
|
|
Loading…
Reference in a new issue