6 lines
153 B
JavaScript
6 lines
153 B
JavaScript
export const createPageTitle = (siteTitle, pageTitle) => {
|
|
if (!pageTitle) {
|
|
return `${siteTitle}`;
|
|
}
|
|
return `${siteTitle} - ${pageTitle}`;
|
|
};
|