feat: add doctorTitle helper function and update references in metadata and FAQ
This commit is contained in:
@@ -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} نوبت بگیرم؟`,
|
||||
|
||||
Reference in New Issue
Block a user