seo fixes
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user