feat: add doctorTitle helper function and update references in metadata and FAQ

This commit is contained in:
hamed
2026-07-19 15:40:24 +03:30
parent b3ffba82d4
commit 4c8377f439
3 changed files with 16 additions and 7 deletions
+3 -1
View File
@@ -7,6 +7,8 @@
// متفاوت استفاده می‌شود که با هشِ (تخصص، شهر) انتخاب می‌شوند — خروجی پایدار
// (بین دو رندر تغییر نمی‌کند) ولی بین صفحات مختلف واگراست.
import { doctorTitle } from "@/helper";
function hash(...parts) {
const key = parts.join("|");
let value = 0;
@@ -63,7 +65,7 @@ export function buildSpecialtyIntro(specialtyName, cityName, doctorCount = 0) {
/** سوالات متداول صفحهٔ پزشک — منبع مشترک بلوک بصری و FAQPage schema. */
export function buildDoctorFaq(doctorName, specialtyName, cityName) {
const who = `دکتر ${doctorName}`;
const who = doctorTitle(doctorName);
return [
{
question: `چگونه از ${who} نوبت بگیرم؟`,