Skip to content

Commit

Permalink
Merge pull request #4 from lara-zeus/fix-nullable
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
atmonshi authored Apr 19, 2022
2 parents 2fcdb95 + c67fa0b commit 94ce913
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion resources/lang/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"Parent Page": "الصفحة الأب",
"Page Order": "ترتيب الصفحة",
"Post Slug": "الرابط المختصر",
"Write an excerpt for your post": "اكتب ملخص للمقالة"
"Write an excerpt for your post": "اكتب ملخص للمقالة",
"Show All posts in": "هرض كافة المثالات في"
}
3 changes: 2 additions & 1 deletion resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"Parent Page": "Parent Page",
"Page Order": "Page Order",
"Post Slug": "Post Slug",
"Write an excerpt for your post": "Write an excerpt for your pos"
"Write an excerpt for your post": "Write an excerpt for your post",
"Show All posts in": "Show All posts in"
}
2 changes: 1 addition & 1 deletion src/Http/Livewire/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function render()
}
seo()
->title($this->page->title)
->description($this->page->description)
->description($this->page->description ?? '')
->twitter();

return view(app('theme').'.page')
Expand Down
3 changes: 2 additions & 1 deletion src/Http/Livewire/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ public function render()
if (! $this->post->getMedia('posts')->isEmpty()) {
seo()->image($this->post->getFirstMediaUrl('posts'));
}

seo()
->title($this->post->title)
->description($this->post->description)
->description($this->post->description ?? '')
->twitter();

return view(app('theme').'.post')
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Livewire/Tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function render()
{
seo()
->title($this->tag->name)
->description('Show All posts in '.$this->tag->name)
->description(__('Show All posts in').' '.$this->tag->name)
->twitter();

return view(app('theme').'.category')
Expand Down

0 comments on commit 94ce913

Please sign in to comment.