From b6f89e22b8846e22cbbdba42c79e8c7c983a2d25 Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 20 Jul 2020 13:51:51 -0700 Subject: [PATCH] do not add index to recent pages list --- brain/data/Render.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/brain/data/Render.js b/brain/data/Render.js index 951541c..1ad557f 100644 --- a/brain/data/Render.js +++ b/brain/data/Render.js @@ -48,7 +48,11 @@ export default class Render { pages.sort((a, b) => parseFloat(b.metadata.id) - parseFloat(a.metadata.id)); const page = pages[index]; - if (page.metadata.deleted === false && page.metadata.published === true) { + if ( + page.metadata.deleted === false && + page.metadata.published === true && + page.metadata.layout !== 'index' + ) { if (recent.length < config.global.display_limit) { recent.push({ title: page.metadata.title,