|
|
@ -48,7 +48,11 @@ export default class Render {
|
|
|
|
pages.sort((a, b) => parseFloat(b.metadata.id) - parseFloat(a.metadata.id));
|
|
|
|
pages.sort((a, b) => parseFloat(b.metadata.id) - parseFloat(a.metadata.id));
|
|
|
|
|
|
|
|
|
|
|
|
const page = pages[index];
|
|
|
|
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) {
|
|
|
|
if (recent.length < config.global.display_limit) {
|
|
|
|
recent.push({
|
|
|
|
recent.push({
|
|
|
|
title: page.metadata.title,
|
|
|
|
title: page.metadata.title,
|
|
|
|