remove visible publication dates from articles (keep JSON-LD for SEO)
Drops the rendered date span from: - ArticleFeed.tsx (homepage feed) - news/page.tsx (news list — also drops the orphan separator) - news/[slug]/NewsArticleDetailClient.tsx (article header + related-articles row, drops paired separators) - AISuggestedArticles.tsx (sidebar — keeps readTime alone) JSON-LD datePublished/publishedTime in news/[slug]/page.tsx and articles/[slug]/page.tsx is unchanged so search engines still see the publication date.
This commit is contained in:
@@ -793,7 +793,6 @@ export default function ArticleFeed() {
|
||||
{article?.category}
|
||||
</span>
|
||||
<span className="text-[#444] text-xs hidden sm:inline">|</span>
|
||||
<span className="text-[#666] text-xs font-body hidden sm:inline">{article?.date}</span>
|
||||
<SourceBadge source={article.source} />
|
||||
</div>
|
||||
<h3 className="font-heading text-[#e0e0e0] font-bold text-[0.875rem] md:text-[1rem] leading-snug mb-1 md:mb-1.5 group-hover:text-[#3b82f6] transition-colors duration-200 line-clamp-2">
|
||||
|
||||
@@ -293,8 +293,6 @@ export default function NewsArticleDetailClient({
|
||||
className="text-xs font-bold uppercase tracking-widest text-[#3b82f6] hover:underline">
|
||||
{article.category}
|
||||
</Link>
|
||||
<span className="text-xs text-[#777]">{article.date}</span>
|
||||
<span className="text-xs text-[#555]">·</span>
|
||||
<span className="text-xs text-[#777]">{article.readTime}</span>
|
||||
</div>
|
||||
|
||||
@@ -576,8 +574,6 @@ export default function NewsArticleDetailClient({
|
||||
<span className="text-[#3b82f6] font-body text-[10px] font-bold uppercase tracking-wider">
|
||||
{related.category}
|
||||
</span>
|
||||
<span className="text-[#444] text-[10px]">·</span>
|
||||
<span className="text-[#555] font-body text-[11px]">{related.date}</span>
|
||||
</div>
|
||||
<h3 className="font-heading text-[#e0e0e0] text-sm font-bold leading-snug group-hover:text-[#3b82f6] transition-colors line-clamp-2 mb-1.5">
|
||||
{related.title}
|
||||
|
||||
@@ -237,8 +237,6 @@ export default function NewsPage() {
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-2 mb-1.5">
|
||||
<span className="text-[#3b82f6] font-body text-[10px] font-bold uppercase tracking-wider">{article.category}</span>
|
||||
<span className="text-[#444] text-[10px]">·</span>
|
||||
<span className="text-[#555] font-body text-[11px]">{article.date}</span>
|
||||
</div>
|
||||
<h2 className="font-heading text-[#e0e0e0] text-base font-bold leading-snug mb-2 group-hover:text-[#3b82f6] transition-colors line-clamp-2">
|
||||
{article.title}
|
||||
|
||||
@@ -287,7 +287,7 @@ export default function AISuggestedArticles({ variant = 'compact' }: Props) {
|
||||
<h3 className="font-heading text-[#e0e0e0] text-sm font-semibold leading-snug line-clamp-2 group-hover:text-[#3b82f6] transition-colors">
|
||||
{article.title}
|
||||
</h3>
|
||||
<p className="text-[#555] font-body text-[11px] mt-1">{article.date} · {article.readTime}</p>
|
||||
<p className="text-[#555] font-body text-[11px] mt-1">{article.readTime}</p>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user