Skip to content

Commit

Permalink
Merge pull request #13 from amvisor/author
Browse files Browse the repository at this point in the history
fix typo: auther to author
  • Loading branch information
atmonshi authored May 16, 2022
2 parents 7aa5ecb + 0003a28 commit ab187e2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ weight: 1
- Featured Image

and more in the way:
- authers
- authors
- menus
- comments
- RSS
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/zeus/page.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@

<div>
<a href="#" class="flex items-center">
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->auther) }}" alt="avatar" class="hidden object-cover w-10 h-10 mx-4 rounded-full sm:block">
<h1 class="font-bold text-gray-700 hover:underline">{{ $post->auther->name ?? '' }}</h1>
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->author) }}" alt="avatar" class="hidden object-cover w-10 h-10 mx-4 rounded-full sm:block">
<h1 class="font-bold text-gray-700 hover:underline">{{ $post->author->name ?? '' }}</h1>
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/zeus/partial/post.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
<a href="{{ route('post',$post->slug) }}" class="text-blue-500 hover:underline">Read more</a>
<div>
<a class="flex items-center gap-2">
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->auther) }}" alt="avatar" class="hidden object-cover w-8 h-8 rounded-full sm:block">
<p class="text-gray-700 hover:underline">{{ $post->auther->name ?? '' }}</p>
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->author) }}" alt="avatar" class="hidden object-cover w-8 h-8 rounded-full sm:block">
<p class="text-gray-700 hover:underline">{{ $post->author->name ?? '' }}</p>
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/zeus/partial/related.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
{{ $post->title ?? '' }}
</a>
<div class="flex mt-3">
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->auther) }}" class="h-10 w-10 rounded-full ltr:mr-2 rtl:ml-2 object-cover"/>
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->author) }}" class="h-10 w-10 rounded-full ltr:mr-2 rtl:ml-2 object-cover"/>
<div>
<p class="font-semibold text-gray-200 text-sm">{{ $post->auther->name ?? '' }}</p>
<p class="font-semibold text-gray-200 text-sm">{{ $post->author->name ?? '' }}</p>
<p class="font-semibold text-gray-400 text-xs">{{ optional($post->published_at)->diffForHumans() ?? '' }}</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/zeus/partial/sticky.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
{{ $post->title ?? '' }}
</h2>
<div class="flex mt-3">
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->auther) }}" class="h-10 w-10 rounded-full mx-2 object-cover"/>
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->author) }}" class="h-10 w-10 rounded-full mx-2 object-cover"/>
<div>
<p class="font-semibold text-gray-200 text-sm">{{ $post->auther->name ?? '' }}</p>
<p class="font-semibold text-gray-200 text-sm">{{ $post->author->name ?? '' }}</p>
<p class="font-semibold text-gray-400 text-xs">{{ optional($post->published_at)->diffForHumans() ?? '' }}</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/themes/zeus/post.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@

<div>
<a href="#" class="flex items-center">
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->auther) }}" alt="avatar" class="hidden object-cover w-10 h-10 mx-4 rounded-full sm:block">
<h1 class="font-bold text-gray-700 hover:underline">{{ $post->auther->name ?? '' }}</h1>
<img src="{{ \Filament\Facades\Filament::getUserAvatarUrl($post->author) }}" alt="avatar" class="hidden object-cover w-10 h-10 mx-4 rounded-full sm:block">
<h1 class="font-bold text-gray-700 hover:underline">{{ $post->author->name ?? '' }}</h1>
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function statusDesc(): string
return "<span title='".__('post status')."' class='px-2 py-0.5 text-xs rounded-xl text-{$PostStatus->class}-700 bg-{$PostStatus->class}-500/10'> ".$icon." {$PostStatus->label}</span>";
}

public function auther()
public function author()
{
return $this->belongsTo(config('auth.providers.users.model'), 'user_id', 'id');
}
Expand Down

0 comments on commit ab187e2

Please sign in to comment.