spee.ch/client/utils/pageTitle.js
2018-03-16 10:34:26 -07:00

6 lines
153 B
JavaScript

export const createPageTitle = (siteTitle, pageTitle) => {
if (!pageTitle) {
return `${siteTitle}`;
}
return `${siteTitle} - ${pageTitle}`;
};