Skip to content

Commit 94ce913

Browse files
authored
Merge pull request #4 from lara-zeus/fix-nullable
fixes
2 parents 2fcdb95 + c67fa0b commit 94ce913

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

resources/lang/ar.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
"Parent Page": "الصفحة الأب",
4242
"Page Order": "ترتيب الصفحة",
4343
"Post Slug": "الرابط المختصر",
44-
"Write an excerpt for your post": "اكتب ملخص للمقالة"
44+
"Write an excerpt for your post": "اكتب ملخص للمقالة",
45+
"Show All posts in": "هرض كافة المثالات في"
4546
}

resources/lang/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
"Parent Page": "Parent Page",
4242
"Page Order": "Page Order",
4343
"Post Slug": "Post Slug",
44-
"Write an excerpt for your post": "Write an excerpt for your pos"
44+
"Write an excerpt for your post": "Write an excerpt for your post",
45+
"Show All posts in": "Show All posts in"
4546
}

src/Http/Livewire/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function render()
2121
}
2222
seo()
2323
->title($this->page->title)
24-
->description($this->page->description)
24+
->description($this->page->description ?? '')
2525
->twitter();
2626

2727
return view(app('theme').'.page')

src/Http/Livewire/Post.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ public function render()
1919
if (! $this->post->getMedia('posts')->isEmpty()) {
2020
seo()->image($this->post->getFirstMediaUrl('posts'));
2121
}
22+
2223
seo()
2324
->title($this->post->title)
24-
->description($this->post->description)
25+
->description($this->post->description ?? '')
2526
->twitter();
2627

2728
return view(app('theme').'.post')

src/Http/Livewire/Tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function render()
2222
{
2323
seo()
2424
->title($this->tag->name)
25-
->description('Show All posts in '.$this->tag->name)
25+
->description(__('Show All posts in').' '.$this->tag->name)
2626
->twitter();
2727

2828
return view(app('theme').'.category')

0 commit comments

Comments
 (0)