Restore short visible News heading while retaining SEO metadata
This commit is contained in:
@@ -138,7 +138,7 @@ export default function CategoryPage({ fixedCategory }: { fixedCategory?: string
|
|||||||
|
|
||||||
<div className="flex items-center justify-between gap-2 mb-6 flex-wrap">
|
<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">
|
<h1 className="min-w-0 text-2xl font-bold text-foreground break-words" data-testid="text-category-title">
|
||||||
{heading}
|
{category}
|
||||||
</h1>
|
</h1>
|
||||||
{data && data.total > 0 && (
|
{data && data.total > 0 && (
|
||||||
<span className="text-sm text-muted-foreground" data-testid="text-article-count">
|
<span className="text-sm text-muted-foreground" data-testid="text-article-count">
|
||||||
|
|||||||
+1
-1
@@ -451,7 +451,7 @@ export function serveStatic(app: Express) {
|
|||||||
}
|
}
|
||||||
const ssr = [
|
const ssr = [
|
||||||
'<section class="ssr-content">',
|
'<section class="ssr-content">',
|
||||||
`<h1>${escapeHtml(catHeading)}</h1>`,
|
`<h1>${escapeHtml(cat)}</h1>`,
|
||||||
"<ul>",
|
"<ul>",
|
||||||
...list.map((a: any) => {
|
...list.map((a: any) => {
|
||||||
const img = ogImageUrl(a.coverImage || "", canonicalBase);
|
const img = ogImageUrl(a.coverImage || "", canonicalBase);
|
||||||
|
|||||||
Reference in New Issue
Block a user