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">
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--8 col--offset-2">
|
||||
<main className="col col--8 col--offset-2">
|
||||
{items.map(({content: BlogPostContent}) => (
|
||||
<BlogPostItem
|
||||
key={BlogPostContent.metadata.permalink}
|
||||
|
@ -35,7 +35,7 @@ function BlogListPage(props) {
|
|||
</BlogPostItem>
|
||||
))}
|
||||
<BlogListPaginator metadata={metadata} />
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
|
|
|
@ -51,10 +51,10 @@ function BlogTagsListPage(props) {
|
|||
<Layout title="Tags" description="Blog Tags">
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--8 col--offset-2">
|
||||
<main className="col col--8 col--offset-2">
|
||||
<h1>Tags</h1>
|
||||
<div className="margin-vert--lg">{tagsSection}</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
|
|
|
@ -25,7 +25,7 @@ function BlogTagsPostPage(props) {
|
|||
description={`Blog | Tagged "${tagName}"`}>
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--8 col--offset-2">
|
||||
<main className="col col--8 col--offset-2">
|
||||
<h1>
|
||||
{count} {pluralize(count, 'post')} tagged with "{tagName}
|
||||
"
|
||||
|
@ -42,7 +42,7 @@ function BlogTagsPostPage(props) {
|
|||
</BlogPostItem>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</Layout>
|
||||
|
|
|
@ -29,7 +29,7 @@ function Feedback() {
|
|||
permalink="/feedback"
|
||||
title="Feedback"
|
||||
description="Docusaurus 2 Feedback page">
|
||||
<div
|
||||
<main
|
||||
className={classnames(
|
||||
'container',
|
||||
'margin-vert--xl',
|
||||
|
|
|
@ -21,7 +21,7 @@ const DESCRIPTION =
|
|||
function Showcase() {
|
||||
return (
|
||||
<Layout title={TITLE} description={DESCRIPTION}>
|
||||
<div className="container margin-vert--lg">
|
||||
<main className="container margin-vert--lg">
|
||||
<div className="text--center margin-bottom--xl">
|
||||
<h1>{TITLE}</h1>
|
||||
<p>{DESCRIPTION}</p>
|
||||
|
@ -71,7 +71,7 @@ function Showcase() {
|
|||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ function Version() {
|
|||
title="Versions"
|
||||
permalink="/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>
|
||||
<div className="margin-bottom--lg">
|
||||
<h3 id="latest">Latest version (Stable)</h3>
|
||||
|
@ -96,7 +96,7 @@ function Version() {
|
|||
</table>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue