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,11 +1,17 @@
|
||||
import { getStateInfo } from "@/lib/getStateInfo";
|
||||
import { buildAboutIntro } from "@/lib/staticPageIntro";
|
||||
import Head from "./Head";
|
||||
import Services from "./Services";
|
||||
|
||||
async function AboutUsPage() {
|
||||
const { matchedCity } = await getStateInfo();
|
||||
const { matchedCity, matchedState, isRoot } = await getStateInfo();
|
||||
const siteName = matchedCity?.site_name || "نوبت ۷۲۴";
|
||||
const slogan = matchedCity?.slogan;
|
||||
// این صفحه self-canonical است؛ بدون متن شهری، ۳۵ دامنه یک محتوا اعلام میکردند.
|
||||
// دامنهٔ ریشه شهر نیست، پس متن شهری نمیگیرد.
|
||||
const cityIntro = isRoot
|
||||
? ""
|
||||
: buildAboutIntro(matchedCity?.name, matchedState?.name, siteName, slogan);
|
||||
|
||||
return (
|
||||
<div
|
||||
@@ -15,6 +21,7 @@ async function AboutUsPage() {
|
||||
<div
|
||||
className=" text-[#525252] text-[16px] font-normal mt-[32px] leading-[28px] md:leading-[32px] lg:leading-[40px] px-[16px] sm:px-[52px] md:px-[15%] text-justify md:text-center flex flex-col gap-[16px] "
|
||||
>
|
||||
{cityIntro && <p>{cityIntro}</p>}
|
||||
<p>
|
||||
{siteName} یک سامانهی آنلاین نوبتدهی پزشکی است که با هدف سادهتر کردن
|
||||
دسترسی مردم به خدمات سلامت طراحی شده است. ما تلاش میکنیم تجربهی رزرو
|
||||
|
||||
Reference in New Issue
Block a user