first commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<x-layouts.app :title="$title" :description="$description" :canonical="$canonical">
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'BreadcrumbList',
|
||||
'itemListElement' => [
|
||||
['@type' => 'ListItem', 'position' => 1, 'name' => 'Blog', 'item' => route('blog.index')],
|
||||
['@type' => 'ListItem', 'position' => 2, 'name' => $category->name, 'item' => $canonical],
|
||||
],
|
||||
]) !!}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
<p class="text-sm text-neutral-500">
|
||||
<a href="{{ route('blog.index') }}" class="hover:underline">Blog</a>
|
||||
<span aria-hidden="true">/</span>
|
||||
{{ $category->name }}
|
||||
</p>
|
||||
<h1 class="mt-2 text-3xl font-bold tracking-tight">{{ $category->name }}</h1>
|
||||
@if ($category->description)
|
||||
<p class="mt-2 text-neutral-600">{{ $category->description }}</p>
|
||||
@endif
|
||||
|
||||
<div class="mt-8">
|
||||
@forelse ($posts as $post)
|
||||
<x-post-card :post="$post" />
|
||||
@empty
|
||||
<p class="text-neutral-500">No posts in this category yet.</p>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
<div class="mt-10">
|
||||
{{ $posts->links() }}
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user