Skip to content

Commit

Permalink
Fallback for missing site title
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed Feb 6, 2023
1 parent 4844d51 commit 4f2c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'options' => [
'color' => '#000000',
'color_dark' => '#ffffff',
'text' => kirby()->site()->title()->value()[0]
'text' => kirby()->site()->title()->value()[0] ?? 'K'
],
'snippets' => [
'autofavicon' => __DIR__ . '/snippets/autofavicon.php'
Expand Down

0 comments on commit 4f2c797

Please sign in to comment.