seo fixes
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<x-layouts.app :title="$title" :description="$description" :canonical="$canonical">
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'TechArticle',
|
||||
'name' => $title,
|
||||
'description' => $description,
|
||||
'url' => $canonical,
|
||||
]) !!}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
<div class="prose prose-neutral max-w-none">
|
||||
{!! $bodyHtml !!}
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'BreadcrumbList',
|
||||
'itemListElement' => [
|
||||
['@type' => 'ListItem', 'position' => 1, 'name' => 'Blog', 'item' => route('blog.index')],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'Blog',
|
||||
'name' => config('app.name'),
|
||||
'url' => $canonical,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'BlogPosting',
|
||||
'headline' => $post->title,
|
||||
'description' => $description,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'BreadcrumbList',
|
||||
'itemListElement' => [
|
||||
['@type' => 'ListItem', 'position' => 1, 'name' => 'Blog', 'item' => route('blog.index')],
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
$seoTitle = $title ?? config('app.name');
|
||||
$seoDescription = $description ?? 'A blog powered by ' . config('app.name') . '.';
|
||||
$seoCanonical = $canonical ?? url()->current();
|
||||
$seoImage = $image ?? null;
|
||||
$seoImage = $image ?? asset('images/og-default.png');
|
||||
$seoType = $type ?? 'website';
|
||||
@endphp
|
||||
|
||||
@@ -65,15 +65,14 @@
|
||||
<div class="mx-auto flex max-w-3xl flex-col gap-4 px-6 py-8 text-sm text-neutral-500 sm:flex-row sm:items-center sm:justify-between">
|
||||
<p>© {{ now()->year }} {{ config('app.name') }}</p>
|
||||
|
||||
@if (($footerPages ?? collect())->isNotEmpty())
|
||||
<nav class="flex flex-wrap gap-x-6 gap-y-2">
|
||||
@foreach ($footerPages as $footerPage)
|
||||
<a href="{{ route('pages.show', $footerPage) }}" class="hover:text-neutral-900 hover:underline underline-offset-4">
|
||||
{{ $footerPage->title }}
|
||||
</a>
|
||||
@endforeach
|
||||
</nav>
|
||||
@endif
|
||||
<nav class="flex flex-wrap gap-x-6 gap-y-2">
|
||||
@foreach ($footerPages ?? [] as $footerPage)
|
||||
<a href="{{ route('pages.show', $footerPage) }}" class="hover:text-neutral-900 hover:underline underline-offset-4">
|
||||
{{ $footerPage->title }}
|
||||
</a>
|
||||
@endforeach
|
||||
<a href="{{ route('api.docs') }}" class="hover:text-neutral-900 hover:underline underline-offset-4">API</a>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'WebPage',
|
||||
'name' => $page->title,
|
||||
'description' => $description,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'BreadcrumbList',
|
||||
'itemListElement' => [
|
||||
['@type' => 'ListItem', 'position' => 1, 'name' => 'AI Tools', 'item' => route('tools.index')],
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'CollectionPage',
|
||||
'name' => 'AI Tools Directory',
|
||||
'url' => $canonical,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
@push('jsonld')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@@context' => 'https://schema.org',
|
||||
'@type' => 'SoftwareApplication',
|
||||
'name' => $tool->name,
|
||||
'description' => $description,
|
||||
|
||||
Reference in New Issue
Block a user