spee.ch/react/utils/pageTitle.js

9 lines
223 B
JavaScript
Raw Normal View History

2018-02-23 20:00:46 +01:00
const { site: { title: siteTitle } } = require('../../config/speechConfig.js');
export const createPageTitle = (pageTitle) => {
if (!pageTitle) {
return `${siteTitle}`;
}
return `${siteTitle} - ${pageTitle}`;
};