generated from boboko/starter
setup for stoic settings, changes in legal pages to use core's store details and contact page to show contact info next to form
This commit is contained in:
@@ -3,6 +3,21 @@
|
||||
@section('title', $page->meta_title)
|
||||
@section('description', $page->meta_description)
|
||||
|
||||
{{-- Organization structured data, home page only. Name from core's StoreDetails,
|
||||
social profiles (sameAs) from Stoic settings.md. --}}
|
||||
@push('seo')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode(array_filter([
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'Organization',
|
||||
'name' => app(\Modules\Core\Store\Services\StoreDetailsService::class)->current()->translate('name') ?: config('app.name'),
|
||||
'url' => url('/'),
|
||||
'logo' => asset('images/logo.png'),
|
||||
'sameAs' => array_column($stoicSettings->socialLinks(), 'url'),
|
||||
]), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="border-b border-black">
|
||||
|
||||
Reference in New Issue
Block a user