diff --git a/src/generators/web/utils/processing.mjs b/src/generators/web/utils/processing.mjs index 5305aa6a..08aefdf1 100644 --- a/src/generators/web/utils/processing.mjs +++ b/src/generators/web/utils/processing.mjs @@ -188,7 +188,9 @@ export async function processJSXEntries( // Replace template placeholders with actual content const renderedHtml = populateWithEvaluation(template, { - title: `${data.heading.data.name} | ${titleSuffix}`, + title: data.heading.data.name + ? `${data.heading.data.name} | ${titleSuffix}` + : titleSuffix, dehydrated: serverBundle.pages.get(`${data.api}.js`) ?? '', importMap: clientBundle.importMap?.replaceAll('/', root) ?? '', entrypoint: `${data.api}.js?${randomUUID()}`,