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

+2 -1
View File
@@ -8,6 +8,7 @@ import { ServicePriceList } from '../../../components/sections/Services.jsx';
import { getIcon } from '../../../lib/icons.js';
import { getServiceLandingCopy } from '../../../lib/serviceLandingCopy.js';
import { serverApi } from '../../../lib/serverApi.js';
import { ORGANIZATION_ID } from '../../../lib/schema.js';
async function findCategory(slug) {
const services = await serverApi.getServices();
@@ -37,7 +38,7 @@ export default async function ServiceLandingPage({ params }) {
'@type': 'Service',
name: copy.h1,
description: copy.metaDescription,
provider: { '@id': `${process.env.NEXT_PUBLIC_SITE_URL || 'https://top-sysops.ru'}/#organization` },
provider: { '@id': ORGANIZATION_ID },
areaServed: 'RU',
};
+19 -1
View File
@@ -2,6 +2,9 @@ import Header from '../../components/Header.jsx';
import Footer from '../../components/Footer.jsx';
import Services from '../../components/sections/Services.jsx';
import { serverApi } from '../../lib/serverApi.js';
import { getOrganizationSchema } from '../../lib/schema.js';
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://top-sysops.ru';
export const metadata = {
title: 'Услуги IT-аутсорсинга и техподдержки — прайс-лист',
@@ -11,10 +14,25 @@ export const metadata = {
};
export default async function ServicesPage() {
const services = await serverApi.getServices();
const [services, orgSchema] = await Promise.all([serverApi.getServices(), getOrganizationSchema()]);
const itemListSchema = {
'@context': 'https://schema.org',
'@type': 'ItemList',
itemListElement: services.map((cat, i) => ({
'@type': 'ListItem',
position: i + 1,
name: cat.title,
url: `${SITE_URL}/uslugi/${cat.slug}`,
})),
};
return (
<div>
{/* eslint-disable-next-line react/no-danger */}
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(orgSchema) }} />
{/* eslint-disable-next-line react/no-danger */}
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(itemListSchema) }} />
<Header />
<Services categories={services} headingLevel="h1" />
<Footer />