FOSSRIT / fossrit.github.io

Official website for Free and Open Source Software @ RIT MAGIC Center and FOSS academia
https://fossrit.github.io
Mozilla Public License 2.0
8 stars 12 forks source link

calendar: Do not include calendar pages in sitemap #152

Closed jwflory closed 4 years ago

jwflory commented 4 years ago

Google Search Console threw an error when it tried to crawl this URL:

https://fossrit.github.io/meetings-meetups/2020/03/26/virtual-foss-hours/

Why it is a problem doesn't make much sense to me, since I wasn't blocking it in our robots.txt, but Google seems to think it is blocked. However, when users see this content, they are actually looking at fossrit.github.io/calendar/ and not the above URL, so we actually don't need Google or any search engine crawling those pages.

So, this adds Front Matter that explicitly excludes calendar events in the sitemap and also adds a Disallow rule to tell search engines not to crawl that directory.

This should fix the error reported in the Google Search Console.

Screenshot of error in Google Search Console: Blocked by robots.txt

jwflory commented 4 years ago

Thanks @kennedy! :+1: