Skip to content

Commit

Permalink
Merge pull request #3819 from JetBrains/ktl-1180-exclude-noindex
Browse files Browse the repository at this point in the history
fix; KTL-1180: Exclude hidden pages from search
  • Loading branch information
zoobestik authored Oct 12, 2023
2 parents 73e4ece + 8b70a93 commit 80239f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def get_dist_page_type(url):
if parsed.find("meta", {"http-equiv": "refresh"}):
page_type = 'Redirect'

if parsed.find("meta", {"name": "robots", "content": "noindex"}):
page_type = 'Hidden'

if url.endswith('pdf'):
page_type = 'File_Pdf'

Expand Down

0 comments on commit 80239f9

Please sign in to comment.