export const createCustomHomeTemplateContent = ( stylesheet: string, hasHeader: boolean, hasFooter: boolean, hasSections: boolean, mainHtml = '' ): string => { const content: string[] = []; if ( hasHeader ) { content.push( `` ); } if ( hasSections ) { // blockGap":"0" removes the theme blockGap from the main group while allowing users to change it from the editor content.push( `
${ mainHtml }
` ); } if ( hasFooter ) { content.push( `` ); } if ( content.length ) { return content.join( '\n' ); } // If no layout is selected, return the paragraph block to start with blank content to avoid the StartModal showing. // See https://github.com/WordPress/gutenberg/blob/343fd27a51ae549c013bc30f51f13aad235d0d4a/packages/edit-site/src/components/start-template-options/index.js#L162 return '

'; };