Skip to content

Commit

Permalink
fix; KTL-1180: Exclude hidden pages from search
Browse files Browse the repository at this point in the history
  • Loading branch information
zoobestik committed Oct 9, 2023
1 parent 67e00ae commit 8b70a93
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 8b70a93

Please sign in to comment.