Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What causes Google search to display a byline for a GitHub repo?

When I do a Google Search on certain GitHub repositories, I see a byline and a date on the third line (following the URL). For example, the "by D Stark - 2016" line in the following screenshot. What causes this information to be displayed and what is the root source of the information?

enter image description here

like image 942
Brad Avatar asked Dec 01 '17 00:12

Brad


1 Answers

The author at the top is decorated with itemprop="author" which I believe trigger this schema http://schema.org/author.

Edit: if you copy-paste the HTML into https://search.google.com/structured-data/testing-tool you'll be able to see everything that is parsed. Marking HTML elements is one way to do it, another one is to build special json elements that contain this data. Ref https://developers.google.com/search/docs/guides/intro-structured-data

like image 158
Stefano Avatar answered Sep 30 '22 20:09

Stefano