spee.ch/client/utils/pageTitle.js

7 lines
153 B
JavaScript
Raw Normal View History

export const createPageTitle = (siteTitle, pageTitle) => {
2018-02-23 20:00:46 +01:00
if (!pageTitle) {
return `${siteTitle}`;
2018-02-23 20:00:46 +01:00
}
return `${siteTitle} - ${pageTitle}`;
2018-02-23 20:00:46 +01:00
};