spee.ch/react/utils/pageTitle.js

6 lines
153 B
JavaScript

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