feat: Enhance metadata generation for About Us and Contact Us pages, implement legacy slug resolution for blog posts, and add city-specific intros
This commit is contained in:
@@ -1,13 +1,24 @@
|
||||
import { getStateInfo } from "@/lib/getStateInfo";
|
||||
import { buildContactIntro } from "@/lib/staticPageIntro";
|
||||
import Call from "./call/Call";
|
||||
import Connect from "./Connect";
|
||||
|
||||
async function ContactUsPage() {
|
||||
const { matchedCity, isRoot } = await getStateInfo();
|
||||
const { matchedCity, matchedState, isRoot } = await getStateInfo();
|
||||
// مثل «درباره ما»: این صفحه هم self-canonical شد و بدون متن شهری، تلفن و ایمیل
|
||||
// یکسانِ ۳۵ دامنه دوباره duplicate میساخت.
|
||||
const cityIntro = isRoot
|
||||
? ""
|
||||
: buildContactIntro(
|
||||
matchedCity?.name,
|
||||
matchedState?.name,
|
||||
matchedCity?.site_name,
|
||||
matchedCity?.slogan
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="w-full pt-[24px] sm:pt-[56px] md:pt-[88px] lg:pt-[120px] mt-[56px] padding-responsive flex flex-col lg:flex-row items-center justify-between h-fit">
|
||||
<Call matchedCity={matchedCity} isDefault={isRoot} />
|
||||
<Call matchedCity={matchedCity} isDefault={isRoot} cityIntro={cityIntro} />
|
||||
{isRoot && <Connect />}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user