- Add /solutions hub page with 10 category cards - Add /solutions/by-concern directory page - Add /solutions/by-oil directory page - Add Solutions section to Footer with navigation links - Add Breadcrumb component for solution pages - Add translations for all solution pages (sr, en, de, fr) - Fix ExitIntentDetector JSON parsing error - Update sitemap with solution pages - Create 3 sample solution pages with data files
31 lines
619 B
TypeScript
31 lines
619 B
TypeScript
export interface FAQPageSchema {
|
|
"@context": "https://schema.org";
|
|
"@type": "FAQPage";
|
|
mainEntity: Array<{
|
|
"@type": "Question";
|
|
name: string;
|
|
acceptedAnswer: {
|
|
"@type": "Answer";
|
|
text: string;
|
|
};
|
|
}>;
|
|
}
|
|
|
|
export function generateFAQPageSchema(
|
|
questions: Array<{ question: string; answer: string }>
|
|
): FAQPageSchema {
|
|
return {
|
|
"@context": "https://schema.org",
|
|
"@type": "FAQPage",
|
|
mainEntity: questions.map((q) => ({
|
|
"@type": "Question",
|
|
name: q.question,
|
|
acceptedAnswer: {
|
|
"@type": "Answer",
|
|
text: q.answer,
|
|
},
|
|
})),
|
|
};
|
|
}
|
|
|