From 1ee97bc282457dc6ce063132860d32b3ecbde00a Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 18 Mar 2019 18:58:55 +0100 Subject: [PATCH] Add page title fallback, just in case --- website/src/components/seo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/seo.js b/website/src/components/seo.js index 4fe45299c..ea3a77790 100644 --- a/website/src/components/seo.js +++ b/website/src/components/seo.js @@ -8,7 +8,7 @@ import socialImageApi from '../images/social_api.jpg' import socialImageUniverse from '../images/social_universe.jpg' function getPageTitle(title, sitename, slogan, sectionTitle) { - if (sectionTitle) { + if (sectionTitle && title) { return `${title} ยท ${sitename} ${sectionTitle}` } if (title) {