SEO: structured data and correct meta tags for news articles

- NewsArticle + BreadcrumbList JSON-LD (headline, summary, images, ISO
  dates, authors, GOOI&meer as NewsMediaOrganization publisher, section)
- Per-article meta description instead of the generic site text
- article:published_time / modified_time in ISO 8601 (was og:article:*
  in RFC 2822), article:section / article:tag, og:image:alt, og:locale nl_NL
- Canonical URL, twitter:card, robots max-image-preview:large
- <html lang="nl">, title without leading whitespace, no keywords meta
- Article wrapped in <article>, dates in <time datetime>
- Metadata is rebuilt after the controller fills in API v2 data (dates,
  author, content blocks were not reflected before)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
eric.busandClaude Opus 5.5 committed 2026-11-23 14:00:58 +01:00
1 parent ab3499e365
commit dbbdca504e
9 files changed
+224 -24

No files matched your search

+7 -3
View File
@@ -1,12 +1,14 @@
<head>
@include('layouts._analytics')
<title>@yield('title') | GOOI&meer</title>
<title>{!! trim($__env->yieldContent('title')) !!} | GOOI&meer</title>
<!--meta-->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.2" />
<meta name="format-detection" content="telephone=no" />
<meta name="keywords" content="GOOI&meer,Radio,TV,Nieuws,Lokale omroep,Huizen,Blaricum,Eemnes,Laren,Hilversum,BEL-gemeenten,Streekomroep" />
<meta name="description" content="GOOI&meer is de streekomroep voor Hilversum, Huizen, Blaricum, Eemnes en Laren." />
<meta name="description" content="{{ (isset($metadata) && $metadata->get('description')) ? $metadata->get('description') : 'GOOI&meer is de streekomroep voor Hilversum, Huizen, Blaricum, Eemnes en Laren.' }}" />
{{-- Allow large image previews (Google Discover, Top Stories) --}}
<meta name="robots" content="max-image-preview:large" />
<link rel="canonical" href="{{ url()->current() }}" />
<!--style-->
<link href='//fonts.googleapis.com/css?family=Roboto:300,400,700' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700' rel='stylesheet' type='text/css'>
@@ -35,6 +37,8 @@
->append('title', ' | GOOI&meer')
->metaTags();
} ?>
<meta name="twitter:card" content="{{ (isset($metadata) && $metadata->get('image')) ? 'summary_large_image' : 'summary' }}" />
@stack('head')
@stack('styles')
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
+1 -1
View File
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="nl">
@include('layouts._head')
<body>
@yield('content')
+1 -1
View File
@@ -2,7 +2,7 @@
@yield('content')
@endsection
<!DOCTYPE html>
<html>
<html lang="nl">
@include('layouts._head')
<body>
<!-- Google Tag Manager (noscript) -->
+3 -2
View File
@@ -11,12 +11,13 @@
@yield('breadcrumb_top')
</div>
<div class="col-12 col-md content_container">
<div class="full-width md_margin_top @yield('content_class')">
{{-- Pages can make this an <article> with @section('content_tag', 'article') --}}
<@yield('content_tag', 'div') class="full-width md_margin_top @yield('content_class')">
@yield('breadcrumb')
@yield('tags')
<h1 class="page_title">@yield('title')</h1>
@yield('content')
</div>
</@yield('content_tag', 'div')>
</div>
<div class="col-12 col-md-auto sidebar">