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