Files
canina/frontend/application/lib/fonts.ts
devops f8f9329c50
Deploy Canina / deploy (push) Successful in 2m10s
feat(seo): implement FAQPage schema, sub-sitemaps and local Lalezar WOFF2 font (SEO-P1-07, SEO-P1-10, SEO-P2-16)
- SEO-P1-07: extract FAQs and accordion items from blog content and inject JSON-LD FAQPage schema
- SEO-P1-10: add dynamic sub-sitemaps /sitemap-blog.xml and /sitemap-wiki.xml and register in robots.ts
- SEO-P2-16: host Lalezar font locally as optimized WOFF2 with preload enabled in lib/fonts.ts
- Add full regression test suites with 100% pass rate
2026-10-17 20:38:09 +00:00

29 lines
654 B
TypeScript

import localFont from 'next/font/local';
export const vazirmatn = localFont({
src: [
{
path: '../public/fonts/vazirmatn-v33.003/fonts/webfonts/Vazirmatn[wght].woff2',
style: 'normal',
},
],
variable: '--font-vazir',
display: 'swap',
fallback: ['system-ui', '-apple-system', 'Segoe UI', 'Roboto', 'Arial', 'sans-serif'],
preload: true,
});
export const lalezar = localFont({
src: [
{
path: '../public/fonts/Lalezar-Regular.woff2',
weight: '400',
style: 'normal',
},
],
variable: '--font-lalezar',
display: 'swap',
fallback: ['cursive', 'system-ui', 'sans-serif'],
preload: true,
});