spee.ch/react/utils/pageTitle.js

9 lines
205 B
JavaScript
Raw Normal View History

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