All checks were successful
Build & Deploy KLZ Cables / 🔍 Prepare Environment (push) Successful in 20s
Build & Deploy KLZ Cables / 🧪 Quality Assurance (push) Successful in 1m30s
Build & Deploy KLZ Cables / 🏗️ Build & Push (push) Successful in 3m14s
Build & Deploy KLZ Cables / 🚀 Deploy (push) Successful in 42s
Build & Deploy KLZ Cables / ⚡ PageSpeed (push) Successful in 5m0s
Build & Deploy KLZ Cables / 🔔 Notifications (push) Successful in 2s
32 lines
1009 B
TypeScript
32 lines
1009 B
TypeScript
import { config } from './config';
|
|
|
|
export const SITE_URL = config.baseUrl || 'https://klz-cables.com';
|
|
export const LOGO_URL = `${SITE_URL}/logo.png`;
|
|
|
|
export const getOrganizationSchema = () => ({
|
|
'@context': 'https://schema.org' as const,
|
|
'@type': 'Organization' as const,
|
|
name: 'KLZ Cables',
|
|
url: SITE_URL,
|
|
logo: LOGO_URL,
|
|
sameAs: ['https://www.linkedin.com/company/klz-cables'],
|
|
contactPoint: {
|
|
'@type': 'ContactPoint' as const,
|
|
telephone: '+49-881-92537298',
|
|
contactType: 'customer service' as const,
|
|
email: 'info@klz-cables.com',
|
|
availableLanguage: ['German', 'English'],
|
|
},
|
|
});
|
|
|
|
export const getBreadcrumbSchema = (items: { name: string; item: string }[]) => ({
|
|
'@context': 'https://schema.org' as const,
|
|
'@type': 'BreadcrumbList' as const,
|
|
itemListElement: items.map((item, index) => ({
|
|
'@type': 'ListItem' as const,
|
|
position: index + 1,
|
|
name: item.name,
|
|
item: item.item.startsWith('http') ? item.item : `${SITE_URL}${item.item}`,
|
|
})),
|
|
});
|