mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 02:08:55 +02:00
refactor(v2): add missing main landmark for needed pages (#2858)
This commit is contained in:
parent
7cba7f0d06
commit
ae91234e0f
6 changed files with 11 additions and 11 deletions
|
@ -24,7 +24,7 @@ function BlogListPage(props) {
|
||||||
<Layout title={title} description="Blog">
|
<Layout title={title} description="Blog">
|
||||||
<div className="container margin-vert--lg">
|
<div className="container margin-vert--lg">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col col--8 col--offset-2">
|
<main className="col col--8 col--offset-2">
|
||||||
{items.map(({content: BlogPostContent}) => (
|
{items.map(({content: BlogPostContent}) => (
|
||||||
<BlogPostItem
|
<BlogPostItem
|
||||||
key={BlogPostContent.metadata.permalink}
|
key={BlogPostContent.metadata.permalink}
|
||||||
|
@ -35,7 +35,7 @@ function BlogListPage(props) {
|
||||||
</BlogPostItem>
|
</BlogPostItem>
|
||||||
))}
|
))}
|
||||||
<BlogListPaginator metadata={metadata} />
|
<BlogListPaginator metadata={metadata} />
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
|
@ -51,10 +51,10 @@ function BlogTagsListPage(props) {
|
||||||
<Layout title="Tags" description="Blog Tags">
|
<Layout title="Tags" description="Blog Tags">
|
||||||
<div className="container margin-vert--lg">
|
<div className="container margin-vert--lg">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col col--8 col--offset-2">
|
<main className="col col--8 col--offset-2">
|
||||||
<h1>Tags</h1>
|
<h1>Tags</h1>
|
||||||
<div className="margin-vert--lg">{tagsSection}</div>
|
<div className="margin-vert--lg">{tagsSection}</div>
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
|
@ -25,7 +25,7 @@ function BlogTagsPostPage(props) {
|
||||||
description={`Blog | Tagged "${tagName}"`}>
|
description={`Blog | Tagged "${tagName}"`}>
|
||||||
<div className="container margin-vert--lg">
|
<div className="container margin-vert--lg">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col col--8 col--offset-2">
|
<main className="col col--8 col--offset-2">
|
||||||
<h1>
|
<h1>
|
||||||
{count} {pluralize(count, 'post')} tagged with "{tagName}
|
{count} {pluralize(count, 'post')} tagged with "{tagName}
|
||||||
"
|
"
|
||||||
|
@ -42,7 +42,7 @@ function BlogTagsPostPage(props) {
|
||||||
</BlogPostItem>
|
</BlogPostItem>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
|
@ -29,7 +29,7 @@ function Feedback() {
|
||||||
permalink="/feedback"
|
permalink="/feedback"
|
||||||
title="Feedback"
|
title="Feedback"
|
||||||
description="Docusaurus 2 Feedback page">
|
description="Docusaurus 2 Feedback page">
|
||||||
<div
|
<main
|
||||||
className={classnames(
|
className={classnames(
|
||||||
'container',
|
'container',
|
||||||
'margin-vert--xl',
|
'margin-vert--xl',
|
||||||
|
|
|
@ -21,7 +21,7 @@ const DESCRIPTION =
|
||||||
function Showcase() {
|
function Showcase() {
|
||||||
return (
|
return (
|
||||||
<Layout title={TITLE} description={DESCRIPTION}>
|
<Layout title={TITLE} description={DESCRIPTION}>
|
||||||
<div className="container margin-vert--lg">
|
<main className="container margin-vert--lg">
|
||||||
<div className="text--center margin-bottom--xl">
|
<div className="text--center margin-bottom--xl">
|
||||||
<h1>{TITLE}</h1>
|
<h1>{TITLE}</h1>
|
||||||
<p>{DESCRIPTION}</p>
|
<p>{DESCRIPTION}</p>
|
||||||
|
@ -71,7 +71,7 @@ function Showcase() {
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ function Version() {
|
||||||
title="Versions"
|
title="Versions"
|
||||||
permalink="/versions"
|
permalink="/versions"
|
||||||
description="Docusaurus 2 Versions page listing all documented site versions">
|
description="Docusaurus 2 Versions page listing all documented site versions">
|
||||||
<div className="container margin-vert--lg">
|
<main className="container margin-vert--lg">
|
||||||
<h1>Docusaurus documentation versions</h1>
|
<h1>Docusaurus documentation versions</h1>
|
||||||
<div className="margin-bottom--lg">
|
<div className="margin-bottom--lg">
|
||||||
<h3 id="latest">Latest version (Stable)</h3>
|
<h3 id="latest">Latest version (Stable)</h3>
|
||||||
|
@ -96,7 +96,7 @@ function Version() {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue