Skip to content

Commit

Permalink
response change to include generated images per page
Browse files Browse the repository at this point in the history
  • Loading branch information
amartya-dev committed Feb 8, 2024
1 parent a2cea71 commit 0585cbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/SiteGen/SiteGen.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ public static function get_home_pages( $site_description, $content_style, $targe
if ( in_array( $pattern_category, $categories_to_separate, true ) ) {
$homepage_patterns[ $pattern_category ] = $random_pattern;
} else {
$homepage_patterns['content'] = $homepage_patterns['content'] . $random_pattern;
$homepage_patterns['content'] = $homepage_patterns['content'] . $random_pattern[''];
}

if ( ! empty( $random_pattern['dalleImages'] ) ) {
$homepage_patterns['generatedImages'] = $random_pattern['dalleImages'];
}
}
$generated_homepages[ $slug ] = $homepage_patterns;
Expand Down

0 comments on commit 0585cbf

Please sign in to comment.