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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user