From 9b56fbb2b90ef35455b3d4449afaa95bc6130afe Mon Sep 17 00:00:00 2001 From: striker Date: Mon, 16 Mar 2026 03:30:18 +0300 Subject: [PATCH] Revert "feat: separate About/Clients/Partners into /o-kompanii/ page, add IndexNow meta" This reverts commit 55981c14dd88a9a520124e55f975351f92291d5d. --- src/app/[lang]/o-kompanii/page.tsx | 49 ------------------------ src/app/[lang]/page.tsx | 6 +++ src/app/layout.tsx | 3 -- src/components/layout/Header.tsx | 2 +- src/components/sections/AboutSection.tsx | 5 +-- 5 files changed, 9 insertions(+), 56 deletions(-) delete mode 100644 src/app/[lang]/o-kompanii/page.tsx diff --git a/src/app/[lang]/o-kompanii/page.tsx b/src/app/[lang]/o-kompanii/page.tsx deleted file mode 100644 index 4a65e3d..0000000 --- a/src/app/[lang]/o-kompanii/page.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import type { Metadata } from 'next' -import { getDictionary, LOCALES, type Locale } from '@/lib/i18n' -import AboutSection from '@/components/sections/AboutSection' -import ClientsSection from '@/components/sections/ClientsSection' -import PartnersSection from '@/components/sections/PartnersSection' - -export function generateStaticParams() { - return LOCALES.map(lang => ({ lang })) -} - -export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }): Promise { - const { lang } = await params - const isRu = lang === 'ru' - return { - title: isRu ? 'О компании — Сисадмингрупп' : 'About Us — SysadminGroup', - description: isRu - ? 'Сисадмингрупп — IT-аутсорсинг в Пушкино и Московской области. Более 10 лет опыта, 150+ клиентов, надёжные партнёры.' - : 'SysadminGroup — IT outsourcing in Pushkino and Moscow Region. Over 10 years experience, 150+ clients, trusted partners.', - alternates: { - canonical: `https://sag24.ru/${lang}/o-kompanii/`, - languages: { - 'ru': 'https://sag24.ru/ru/o-kompanii/', - 'en': 'https://sag24.ru/en/o-kompanii/', - 'x-default': 'https://sag24.ru/ru/o-kompanii/', - }, - }, - openGraph: { - title: isRu ? 'О компании — Сисадмингрупп' : 'About Us — SysadminGroup', - description: isRu - ? 'Сисадмингрупп — IT-аутсорсинг в Пушкино и Московской области. Более 10 лет опыта, 150+ клиентов.' - : 'SysadminGroup — IT outsourcing in Pushkino and Moscow Region. Over 10 years experience, 150+ clients.', - url: `https://sag24.ru/${lang}/o-kompanii/`, - images: [{ url: '/og-image.png' }], - }, - } -} - -export default async function AboutPage({ params }: { params: Promise<{ lang: string }> }) { - const { lang: langStr } = await params - const lang = langStr as Locale - const d = getDictionary(lang) - return ( -
- - - -
- ) -} diff --git a/src/app/[lang]/page.tsx b/src/app/[lang]/page.tsx index cae0aa8..7b64206 100644 --- a/src/app/[lang]/page.tsx +++ b/src/app/[lang]/page.tsx @@ -2,6 +2,9 @@ import type { Metadata } from 'next' import { getDictionary, LOCALES, type Locale } from '@/lib/i18n' import Hero from '@/components/sections/Hero' import ServicesGrid from '@/components/sections/ServicesGrid' +import AboutSection from '@/components/sections/AboutSection' +import ClientsSection from '@/components/sections/ClientsSection' +import PartnersSection from '@/components/sections/PartnersSection' import FaqSection from '@/components/sections/FaqSection' export function generateStaticParams() { @@ -64,6 +67,9 @@ export default async function HomePage({ params }: { params: Promise<{ lang: str <> + + +