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:
Ryan Salazar
2026-05-08 00:18:12 +00:00
parent eabe31f911
commit 3334d11597
4 changed files with 1 additions and 8 deletions

View File

@@ -793,7 +793,6 @@ export default function ArticleFeed() {
{article?.category} {article?.category}
</span> </span>
<span className="text-[#444] text-xs hidden sm:inline">|</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} /> <SourceBadge source={article.source} />
</div> </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"> <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">

View File

@@ -293,8 +293,6 @@ export default function NewsArticleDetailClient({
className="text-xs font-bold uppercase tracking-widest text-[#3b82f6] hover:underline"> className="text-xs font-bold uppercase tracking-widest text-[#3b82f6] hover:underline">
{article.category} {article.category}
</Link> </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> <span className="text-xs text-[#777]">{article.readTime}</span>
</div> </div>
@@ -576,8 +574,6 @@ export default function NewsArticleDetailClient({
<span className="text-[#3b82f6] font-body text-[10px] font-bold uppercase tracking-wider"> <span className="text-[#3b82f6] font-body text-[10px] font-bold uppercase tracking-wider">
{related.category} {related.category}
</span> </span>
<span className="text-[#444] text-[10px]">·</span>
<span className="text-[#555] font-body text-[11px]">{related.date}</span>
</div> </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"> <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} {related.title}

View File

@@ -237,8 +237,6 @@ export default function NewsPage() {
<div className="flex-1 min-w-0"> <div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1.5"> <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-[#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> </div>
<h2 className="font-heading text-[#e0e0e0] text-base font-bold leading-snug mb-2 group-hover:text-[#3b82f6] transition-colors line-clamp-2"> <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} {article.title}

View File

@@ -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"> <h3 className="font-heading text-[#e0e0e0] text-sm font-semibold leading-snug line-clamp-2 group-hover:text-[#3b82f6] transition-colors">
{article.title} {article.title}
</h3> </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> </Link>
))} ))}
</div> </div>