spee.ch/react/utils/pageTitle.js
2018-03-12 19:26:03 -07:00

8 lines
205 B
JavaScript

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