fix(v2): prevent useless blog pages to be in search results (#4340)

This commit is contained in:
Sébastien Lorber 2021-03-03 18:23:47 +01:00 committed by GitHub
parent 070b3fc1e8
commit 879dcb0701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View File

@ -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">

View File

@ -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">

View File

@ -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">