From 43f23918d9bc37b1a93fa7e0a4090e63adf9a0f1 Mon Sep 17 00:00:00 2001 From: Ro Date: Mon, 20 Jul 2020 13:53:07 -0700 Subject: [PATCH] merged recent list fix from develop --- 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,