spee.ch/react/utils/pageTitle.js
2018-02-23 11:00:46 -08:00

8 lines
223 B
JavaScript

const { site: { title: siteTitle } } = require('../../config/speechConfig.js');
export const createPageTitle = (pageTitle) => {
if (!pageTitle) {
return `${siteTitle}`;
}
return `${siteTitle} - ${pageTitle}`;
};