fix: remove obsolete references to highlights

This commit is contained in:
Yarmo Mackenbach 2024-01-27 22:16:37 +01:00
parent e52d965d02
commit fe96ab2c35
No known key found for this signature in database
GPG key ID: C248C28D432560ED

View file

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