Show intended GitHub pages name in Google Search
While setting up the site and publishing it on GitHub Pages. I observed that the search engine results were not showing up as per my liking.
Let me show you an example of what I mean:
Google shows "MS 365 & Power Platform Community" correctly but "GitHub" and "github.io" for the others
pnp.github.io/index.html on GitHub
This made me curious and after a quick Gemini search, I found out that it's a structured data markup in JSON-LD format that provides information about a website to search engines. Meaning:
"@context" : "http://schema.org"
- This specifies that the vocabulary used in this data is from Schema.org, a collaborative community activity whose mission is to create, maintain, and promote schemas for structured data on the Internet, on web pages, in email messages, and beyond.
"@type" : "WebSite"
- This indicates that the entity being described is a website.
"name" : "Hursh Gupta"
- The name of the website.
In essence, this script helps search engines like Google understand the content and purpose of the website more effectively, which can improve its visibility and presentation in search results.
So, without wasting any time, I added this to my site too. What I expect to see is the "GitHub" turning to "Hursh Gupta". Let's wait...