8 lines
224 B
JavaScript
8 lines
224 B
JavaScript
const { details: { title: siteTitle } } = require('../../config/siteConfig.js');
|
|
|
|
export const createPageTitle = (pageTitle) => {
|
|
if (!pageTitle) {
|
|
return `${siteTitle}`;
|
|
}
|
|
return `${siteTitle} - ${pageTitle}`;
|
|
};
|