From fe96ab2c352faca0497497d639552da3daad6c0d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 27 Jan 2024 22:16:37 +0100 Subject: [PATCH] fix: remove obsolete references to highlights --- src/routes/main.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/routes/main.js b/src/routes/main.js index 65ff1de..5f19067 100644 --- a/src/routes/main.js +++ b/src/routes/main.js @@ -37,19 +37,7 @@ const router = express.Router() const md = markdownImport({ typographer: true }) router.get('/', (req, res) => { - const highlights = [] - 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) }) + res.render('index', { meta: getMetaFromReq(req) }) }) router.get('/apps', (req, res) => {