Consolidate Organization schema, add ItemList/Offer markup, expand FAQ

- Merge the duplicate Organization/LocalBusiness JSON-LD blocks (home's
  LocalBusiness + o-kompanii's Organization) into one shared
  getOrganizationSchema() call rendered on every page. Deliberately NOT
  wired through the root layout: fetches there get frozen into the
  static shell at build time (backend unreachable during image build)
  and never revalidate, silently serving stale data to crawlers - each
  page calls it directly instead, where revalidation is proven to work.
- Add optional ItemList schema on /uslugi and Offer/OfferCatalog schema
  on /aktsii; entity pages (/uslugi/[slug] Service, /blog/[slug]
  Article) reference the organization via @id instead of duplicating it.
- Add 8 more real FAQ entries (pricing model, contract terms,
  onboarding time, hybrid IT staff setup, supported stacks, backups,
  152-FZ compliance, escalation) and give every FAQ its own slug and
  dedicated /faq/[slug] page with its own title/H1/FAQPage schema,
  modeled on the one-topic-per-page pattern (h/t remontka.pro).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013otXCiTZsxdZ4SJKZ9wUky
This commit is contained in:
ogrechkoandClaude Sonnet 5 committed 2026-08-26 00:57:07 +03:00
1 parent f53c8b1ed7
commit 1e4f97030a
19 files changed
+271 -69

No files matched your search

+42 -3
View File
@@ -1,12 +1,51 @@
import { serverApi } from './serverApi.js';
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://top-sysops.ru';
export const ORGANIZATION_ID = `${SITE_URL}/#organization`;
// Единая сущность Organization/LocalBusiness для всего сайта - рендерится один
// раз в корневом layout, чтобы на каждой странице был ровно один JSON-LD блок
// про компанию, а не несколько дублирующих друг друга.
export async function getOrganizationSchema() {
const [contact, reviews, services] = await Promise.all([
serverApi.getContact(),
serverApi.getReviews(),
serverApi.getServices(),
]);
export function getOrganizationSchema() {
return {
'@context': 'https://schema.org',
'@type': 'Organization',
'@id': `${SITE_URL}/#organization`,
'@type': 'LocalBusiness',
'@id': ORGANIZATION_ID,
name: 'TopSysOps',
url: SITE_URL,
foundingDate: '2023',
numberOfEmployees: { '@type': 'QuantitativeValue', minValue: 20 },
...(contact?.address ? { address: { '@type': 'PostalAddress', streetAddress: contact.address, addressCountry: 'RU' } } : {}),
...(contact?.phone ? { telephone: contact.phone } : {}),
...(contact?.email ? { email: contact.email } : {}),
...(reviews.length > 0
? {
aggregateRating: {
'@type': 'AggregateRating',
ratingValue: (reviews.reduce((sum, r) => sum + r.rating, 0) / reviews.length).toFixed(1),
reviewCount: reviews.length,
},
}
: {}),
...(services.length > 0
? {
hasOfferCatalog: {
'@type': 'OfferCatalog',
name: 'Услуги TopSysOps',
itemListElement: services.flatMap((cat) =>
cat.items.map((it) => ({
'@type': 'Offer',
itemOffered: { '@type': 'Service', name: it.name, description: it.note || cat.description },
}))
),
},
}
: {}),
};
}
+1
View File
@@ -20,6 +20,7 @@ export const serverApi = {
getReviews: () => get('/reviews').then((v) => v || []),
getCases: () => get('/cases').then((v) => v || []),
getFaqs: () => get('/faqs').then((v) => v || []),
getFaq: (slug) => get(`/faqs/${slug}`),
getContact: () => get('/contact'),
getBlogPosts: () => get('/blog').then((v) => v || []),
getBlogPost: (slug) => get(`/blog/${slug}`, { revalidate: 60 }),