mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-29 21:42:50 +00:00
fix(v2): prevent useless blog pages to be in search results (#4340)
This commit is contained in:
parent
070b3fc1e8
commit
879dcb0701
|
|
@ -26,7 +26,11 @@ function BlogListPage(props: Props): JSX.Element {
|
|||
<Layout
|
||||
title={title}
|
||||
description={blogDescription}
|
||||
wrapperClassName="blog-wrapper">
|
||||
wrapperClassName="blog-wrapper"
|
||||
searchMetadatas={{
|
||||
// assign unique search tag to exclude this page from search results!
|
||||
tag: 'blog_posts_list',
|
||||
}}>
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--2">
|
||||
|
|
|
|||
|
|
@ -54,7 +54,11 @@ function BlogTagsListPage(props: Props): JSX.Element {
|
|||
<Layout
|
||||
title="Tags"
|
||||
description="Blog Tags"
|
||||
wrapperClassName="blog-wrapper">
|
||||
wrapperClassName="blog-wrapper"
|
||||
searchMetadatas={{
|
||||
// assign unique search tag to exclude this page from search results!
|
||||
tag: 'blog_tags_list',
|
||||
}}>
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--2">
|
||||
|
|
|
|||
|
|
@ -59,7 +59,11 @@ function BlogTagsPostPage(props: Props): JSX.Element {
|
|||
<Layout
|
||||
title={`Posts tagged "${tagName}"`}
|
||||
description={`Blog | Tagged "${tagName}"`}
|
||||
wrapperClassName="blog-wrapper">
|
||||
wrapperClassName="blog-wrapper"
|
||||
searchMetadatas={{
|
||||
// assign unique search tag to exclude this page from search results!
|
||||
tag: 'blog_tags_posts',
|
||||
}}>
|
||||
<div className="container margin-vert--lg">
|
||||
<div className="row">
|
||||
<div className="col col--2">
|
||||
|
|
|
|||
Loading…
Reference in New Issue