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

+9 -5
View File
@@ -6,6 +6,13 @@
@section('page_class')news_post post_container @endsection
{{-- The article itself is an <article> element (title, details and text) --}}
@section('content_tag', 'article')
@push('head')
@include('partial/news_jsonld', ['news' => $news])
@endpush
@section('breadcrumb')
<ul class="bread_crumb">
<li><a title="Home" href="/">Home</a></li>
@@ -32,13 +39,10 @@
<ul class="post_details clearfix">
<li class="detail date">
<i class="fa-regular fa-clock"></i>
{{Formatter::relativeDate($news->published)}} om {{$news->published->format('H:i')}}
<time datetime="{{$news->published->format(DATE_ATOM)}}">{{Formatter::relativeDate($news->published)}} om {{$news->published->format('H:i')}}</time>
@if($news->edited && ($news->edited->format('d m H i') != $news->published->format('d m H i')))
| bijgewerkt:
@if($news->edited->format('d m') != $news->published->format('d m'))
{{strtolower(Formatter::relativeDate($news->edited))}}
@endif
om {{$news->edited->format('H:i')}} uur
<time datetime="{{$news->edited->format(DATE_ATOM)}}">@if($news->edited->format('d m') != $news->published->format('d m')){{strtolower(Formatter::relativeDate($news->edited))}} @endif om {{$news->edited->format('H:i')}} uur</time>
@endif
</li>
@if($news->author)