- GOOI&meer as NewsMediaOrganization on every page: former names (NH Gooi,
6fm), logo, address, contact, KvK, social profiles, masthead (/redactie)
and feedback policy (/klachten)
- WebSite with SearchAction (/nieuws/zoeken/{term})
- Organization details in config/seo.php; news articles use the same
publisher @id and refer to the WebSite with isPartOf
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
2.5 KiB
PHP
70 lines
2.5 KiB
PHP
{{--
|
|
Site-wide structured data (schema.org JSON-LD): GOOI&meer as a
|
|
NewsMediaOrganization and the WebSite with its search. Included on every
|
|
page; news articles refer to the organization by its @id.
|
|
Values: config/seo.php
|
|
--}}
|
|
@php
|
|
$org = config('seo.organization');
|
|
$home = rtrim(url('/'), '/') . '/';
|
|
|
|
$organization = [
|
|
'@type' => 'NewsMediaOrganization',
|
|
'@id' => $home . '#organization',
|
|
'name' => $org['name'],
|
|
'alternateName' => $org['alternate_names'],
|
|
'url' => $home,
|
|
'logo' => [
|
|
'@type' => 'ImageObject',
|
|
'url' => url($org['logo']),
|
|
'width' => $org['logo_width'],
|
|
'height' => $org['logo_height'],
|
|
],
|
|
'address' => [
|
|
'@type' => 'PostalAddress',
|
|
'streetAddress' => $org['address']['street'],
|
|
'postalCode' => $org['address']['postal_code'],
|
|
'addressLocality' => $org['address']['locality'],
|
|
'addressCountry' => $org['address']['country'],
|
|
],
|
|
'telephone' => $org['telephone'],
|
|
'email' => $org['email'],
|
|
'contactPoint' => [
|
|
'@type' => 'ContactPoint',
|
|
'contactType' => 'redactie',
|
|
'telephone' => $org['telephone'],
|
|
'email' => $org['email'],
|
|
'availableLanguage' => 'nl',
|
|
],
|
|
'identifier' => [
|
|
'@type' => 'PropertyValue',
|
|
'propertyID' => 'KvK',
|
|
'value' => $org['kvk'],
|
|
],
|
|
'sameAs' => $org['same_as'],
|
|
'masthead' => url($org['masthead']),
|
|
'actionableFeedbackPolicy' => url($org['feedback_policy']),
|
|
];
|
|
|
|
$website = [
|
|
'@type' => 'WebSite',
|
|
'@id' => $home . '#website',
|
|
'url' => $home,
|
|
'name' => $org['name'],
|
|
'alternateName' => $org['alternate_names'],
|
|
'inLanguage' => 'nl-NL',
|
|
'publisher' => ['@id' => $home . '#organization'],
|
|
'potentialAction' => [
|
|
'@type' => 'SearchAction',
|
|
'target' => [
|
|
'@type' => 'EntryPoint',
|
|
'urlTemplate' => url('/nieuws/zoeken') . '/{search_term_string}',
|
|
],
|
|
'query-input' => 'required name=search_term_string',
|
|
],
|
|
];
|
|
|
|
$jsonld = ['@context' => 'https://schema.org', '@graph' => [$organization, $website]];
|
|
@endphp
|
|
<script type="application/ld+json">{!! json_encode($jsonld, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG | JSON_PRETTY_PRINT) !!}</script>
|