Add page title fallback, just in case

This commit is contained in:
Ines Montani 2019-03-18 18:58:55 +01:00
parent 728ae7651b
commit 1ee97bc282

View File

@ -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) {