forked from projects/fipamo
merged recent list fix from develop
This commit is contained in:
parent
3f4fb79425
commit
43f23918d9
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue