- Add metadata to login and login-verify pages to prevent indexing. - Update robots.txt to disallow additional sensitive paths. - Enhance sitemap generation to filter by city and include accurate last modified dates. - Refactor canonical URL generation to support multi-domain architecture, ensuring self-canonicalization for city domains. - Remove deprecated CanonicalHandler component and streamline canonical URL handling. - Introduce safe JSON-LD output to prevent XSS vulnerabilities. - Add payment layout with appropriate metadata to prevent indexing. - Conduct a comprehensive technical SEO audit and implement necessary fixes across the application.
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 = "https://nobat724.com/assets/images/logo.png";
|
|
return {
|
|
title,
|
|
description,
|
|
// مقالات روی همهی دامنهها یکساناند — تجمیع روی دامنهی اصلی
|
|
alternates: { canonical: "https://nobat724.com/blogs" },
|
|
openGraph: { title, description, images: [image] },
|
|
twitter: { card: "summary_large_image", title, description, images: [image] },
|
|
};
|
|
}
|
|
|
|
export default function Blogs() {
|
|
return (
|
|
<Layout name="/blogs">
|
|
<BlogsPage />
|
|
</Layout>
|
|
);
|
|
}
|