feat: add shared placeholder art for projects without a cover

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:08:52 -05:00
1 parent 69c57ea73c
commit 873842b2a0
8 files changed
+14 -3

No files matched your search

+5
View File
@@ -687,6 +687,7 @@ function chrnx_get_topic_art_asset( string $topic_slug ): string {
'about-grunge' => 'about-grunge.png',
'placeholder-post' => 'placeholder-post.png',
'placeholder-release' => 'placeholder-release.png',
'placeholder-project' => 'placeholder-project.png',
'projects-grunge' => 'projects-grunge.png',
'podcasts' => 'alter-ego-podcasts.png',
'life' => 'alter-ego-life.png',
@@ -719,5 +720,9 @@ function chrnx_get_topic_art_dimensions( string $topic_slug ): array {
return array( 1536, 1536 );
}
if ( 'placeholder-project' === $topic_slug ) {
return array( 1534, 1025 );
}
return 'gaming' === $topic_slug ? array( 1024, 1536 ) : array( 1122, 1402 );
}