Skip to content

Commit e0ed6f2

Browse files
committed
Handle undefined array key, fixes #229
1 parent 9cc80f4 commit e0ed6f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/views/components/article-excerpt.blade.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
<header>
88
<a href="posts/{{ $post->matter['slug'] }}.html" class="block w-fit">
9-
<h2 class="text-2xl font-bold text-gray-700 hover:text-gray-900 dark:text-gray-200 dark:hover:text-white transition-colors duration-75">{{ $post->matter['title'] }}</h2>
9+
<h2 class="text-2xl font-bold text-gray-700 hover:text-gray-900 dark:text-gray-200 dark:hover:text-white transition-colors duration-75">
10+
{{ $post->matter['title'] ?? $post->title }}
11+
</h2>
1012
</a>
1113
</header>
1214
<footer>

0 commit comments

Comments
 (0)