Fix missing H1 on list-style pages via SectionHeading template
SectionHeading always rendered its title as <h2>, so every page whose only heading came from a shared section component (services hub, promotions, cases, faq, contact, reviews, blog list) had no <h1> at all. Add a level prop (default h2) and pass headingLevel="h1" from each page where that section is the page's own top-level heading. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013otXCiTZsxdZ4SJKZ9wUky
This commit is contained in:
1 parent
30e1aea20b
commit
f53c8b1ed7
14 files changed
+28
-18
No files matched your search
@@ -16,7 +16,7 @@ export default async function PromotionsPage() {
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
<Promotions promotions={promotions} showMailNote />
|
||||
<Promotions promotions={promotions} showMailNote headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -24,7 +24,12 @@ export default async function BlogListPage() {
|
||||
<div>
|
||||
<Header />
|
||||
<section className="max-w-3xl mx-auto px-5 sm:px-8 py-20 min-h-[60vh]">
|
||||
<SectionHeading eyebrow="blog --articles" title="Блог" desc="Заметки об IT-инфраструктуре, кибербезопасности и автоматизации." />
|
||||
<SectionHeading
|
||||
eyebrow="blog --articles"
|
||||
title="Блог"
|
||||
desc="Заметки об IT-инфраструктуре, кибербезопасности и автоматизации."
|
||||
level="h1"
|
||||
/>
|
||||
|
||||
{posts.length === 0 && <p className="text-sm text-slate-400">Пока нет опубликованных статей - загляните позже.</p>}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default async function FaqPage() {
|
||||
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }} />
|
||||
)}
|
||||
<Header />
|
||||
<Faq faqs={faqs} />
|
||||
<Faq faqs={faqs} headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function CasesPage() {
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
<Cases cases={cases} showDisclaimer />
|
||||
<Cases cases={cases} showDisclaimer headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function ContactPage() {
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
<Contact contact={contact} />
|
||||
<Contact contact={contact} headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -15,7 +15,7 @@ export default async function ReviewsPage() {
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
<Reviews reviews={reviews} />
|
||||
<Reviews reviews={reviews} headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -16,7 +16,7 @@ export default async function ServicesPage() {
|
||||
return (
|
||||
<div>
|
||||
<Header />
|
||||
<Services categories={services} />
|
||||
<Services categories={services} headingLevel="h1" />
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user