Fix universe page titles if no separate title is set

This commit is contained in:
Ines Montani 2019-03-18 18:58:46 +01:00
parent a20d3772fd
commit 728ae7651b

View File

@ -177,7 +177,7 @@ exports.createPages = ({ graphql, actions }) => {
id: page.id, id: page.id,
slug: slug, slug: slug,
isIndex: false, isIndex: false,
title: page.title, title: page.title || page.id,
data: { ...page, isProject: true }, data: { ...page, isProject: true },
...universeContext, ...universeContext,
}, },