feat(rehber): guncelleme alanı → sitemap/JSON-LD/OG/görünür tarih

Frontmatter'a isteğe bağlı `guncelleme` alanı geldi ve uçtan uca akıyor:
sitemap lastmod (yazı + /rehber dizini), Article JSON-LD dateModified,
og:article modified_time ve makale başlığının altındaki görünür tarih
satırı. `tarih`/`guncelleme` YYYY-AA-GG değilse ya da güncelleme yayından
önceyse build kırılır. Tarih metni saat diliminden bağımsız `trTarih` ile
üretilir.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-09-21 04:47:29 +03:00
parent a9ea0bf49b
commit d9e125c5de
5 changed files with 106 additions and 8 deletions

View File

@@ -151,6 +151,8 @@ export function articleJsonLd(opts: {
description: string;
path: string;
datePublished: string;
/** Verilmezse yayın tarihi kullanılır (yazı hiç güncellenmemiş). */
dateModified?: string;
}): JsonLdData {
return {
"@context": "https://schema.org",
@@ -159,6 +161,7 @@ export function articleJsonLd(opts: {
description: opts.description,
url: `${SITE_URL}${opts.path}`,
datePublished: opts.datePublished,
dateModified: opts.dateModified ?? opts.datePublished,
inLanguage: "tr",
publisher: {
"@type": "Organization",