Skip to content

Commit

Permalink
prevent useless blog tag pages to be retrieved from search
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Mar 3, 2021
1 parent 734eca9 commit 03dd6b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 03dd6b0

Please sign in to comment.