Restore short visible News heading while retaining SEO metadata

This commit is contained in:
Codex
2026-10-07 13:31:55 +02:00
parent 9a43fdf43c
commit c5c3fe290e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export default function CategoryPage({ fixedCategory }: { fixedCategory?: string
<div className="flex items-center justify-between gap-2 mb-6 flex-wrap">
<h1 className="min-w-0 text-2xl font-bold text-foreground break-words" data-testid="text-category-title">
{heading}
{category}
</h1>
{data && data.total > 0 && (
<span className="text-sm text-muted-foreground" data-testid="text-article-count">
+1 -1
View File
@@ -451,7 +451,7 @@ export function serveStatic(app: Express) {
}
const ssr = [
'<section class="ssr-content">',
`<h1>${escapeHtml(catHeading)}</h1>`,
`<h1>${escapeHtml(cat)}</h1>`,
"<ul>",
...list.map((a: any) => {
const img = ogImageUrl(a.coverImage || "", canonicalBase);