Files
klz-cables.com/lib/schema.ts
Marc Mintel fb6af84a42
Some checks failed
Build & Deploy KLZ Cables / deploy (push) Failing after 39s
interactive map
2026-01-25 13:46:31 +01:00

32 lines
850 B
TypeScript

export const LOGO_URL = `${SITE_URL}/logo.png`;
export const getOrganizationSchema = () => ({
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'KLZ Cables',
url: SITE_URL,
logo: LOGO_URL,
sameAs: [
'https://www.linkedin.com/company/klz-cables',
],
contactPoint: {
'@type': 'ContactPoint',
telephone: '+49-881-92537298',
contactType: 'customer service',
email: 'info@klz-cables.com',
availableLanguage: ['German', 'English']
}
});
export const getBreadcrumbSchema = (items: { name: string; item: string }[]) => ({
'@context': 'https://schema.org',
'@type': 'BreadcrumbList',
itemListElement: items.map((item, index) => ({
'@type': 'ListItem',
position: index + 1,
name: item.name,
item: item.item.startsWith('http') ? item.item : `${SITE_URL}${item.item}`,
})),
});