feat(blog): implement loading and error handling components for blog pages feat(clinic): add loading and error handling components for clinic pages feat(doctor): create loading and error handling components for doctor pages feat(clinics): add loading component for clinics page feat(specialties): improve metadata for specialties page with Open Graph and Twitter images feat(layout): add structured data for Organization and WebSite in layout fix(middleware): restrict middleware execution to specific routes to improve performance chore(audit): add comprehensive SEO and performance audit documentation
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import Layout from "@/components/layout/StLayout";
|
|
import SpecialtiesPage from "@/components/specialties";
|
|
import { getStateInfo } from "@/lib/getStateInfo";
|
|
|
|
export async function generateMetadata() {
|
|
const { matchedCity } = await getStateInfo();
|
|
const siteName = matchedCity?.site_name || "نوبت 724";
|
|
const cityName = matchedCity?.name || "";
|
|
const title = cityName
|
|
? `تخصصهای پزشکی در ${cityName} | ${siteName}`
|
|
: `تخصصهای پزشکی | ${siteName}`;
|
|
const description = `لیست کامل تخصصهای پزشکی${cityName ? " در " + cityName : ""}. رزرو نوبت از متخصصین مختلف به صورت آنلاین.`;
|
|
const image = "https://www.nobat724.com/assets/images/logo.png";
|
|
return {
|
|
title,
|
|
description,
|
|
openGraph: { title, description, images: [image] },
|
|
twitter: { card: "summary_large_image", title, description, images: [image] },
|
|
};
|
|
}
|
|
|
|
async function Specialties() {
|
|
const { matchedCity } = await getStateInfo();
|
|
return (
|
|
<Layout name="/specialties">
|
|
<SpecialtiesPage cityId={matchedCity?.id ?? null} />
|
|
</Layout>
|
|
);
|
|
}
|
|
|
|
export default Specialties;
|