- Implemented canonical URL strategies for city-specific domains and entities. - Added helper functions for domain and city resolution. - Created tests for canonical URL generation and domain resolution. - Introduced entity quality checks for doctors and clinics to ensure meaningful content. - Developed unique introductory texts for listing pages to avoid duplicate content. - Established robots.txt policies for listing pages to manage indexing based on user filters. - Enhanced specialty content with dynamic introductions and FAQs to improve SEO.
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
import BlogsPage from "@/components/blogs";
|
|
import Layout from "@/components/layout/StLayout";
|
|
import { getStateInfo } from "@/lib/getStateInfo";
|
|
|
|
export async function generateMetadata() {
|
|
const { matchedCity } = await getStateInfo();
|
|
const siteName = matchedCity?.site_name || "نوبت 724";
|
|
const title = `مقالات و اخبار پزشکی | ${siteName}`;
|
|
const description = `جدیدترین مقالات، اخبار و راهنماهای پزشکی. اطلاعات تخصصی در حوزه سلامت و پزشکی از متخصصان ${siteName}.`;
|
|
const image = "/assets/images/og-image.png";
|
|
return {
|
|
title,
|
|
description,
|
|
// C1-a — لیست بلاگ per-domain است (پستهای همان شهر + سراسری)؛
|
|
// canonical لایهٔ layout (self روی همان دامنه) درست است.
|
|
openGraph: { title, description, images: [image] },
|
|
twitter: { card: "summary_large_image", title, description, images: [image] },
|
|
};
|
|
}
|
|
|
|
export default function Blogs() {
|
|
return (
|
|
<Layout name="/blogs">
|
|
<BlogsPage />
|
|
</Layout>
|
|
);
|
|
}
|