Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search engine support #1194

Open
fredrik-bakke opened this issue Oct 10, 2024 · 1 comment
Open

Search engine support #1194

fredrik-bakke opened this issue Oct 10, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed website

Comments

@fredrik-bakke
Copy link
Collaborator

The library still appears in this less-than-favorable form in Google's search results:

image

There's a few issues to point out that could be improved.

  1. The site title is "Github Pages" rather than "agda-unimath"
  2. The favicon is not displayed
  3. The preview content is gibberish.
@fredrik-bakke fredrik-bakke added enhancement New feature or request help wanted Extra attention is needed website labels Oct 10, 2024
@VojtechStep
Copy link
Collaborator

I don't think we can do much about the favicon, unfortunately, as long as agda-unimath is hosted at https://unimath.github.io/agda-unimath/ — quoting Google documentation, we're restricted by:

Google Search only supports one favicon per site, where a site is defined by the hostname. For example, https://www.example.com/ and https://code.example.com/ are two different hostnames, and therefore can have two different favicons. However, https://www.example.com/sub-site is a subdirectory of a site, and you can only set one favicon for https://www.example.com/, which applies to the site and its subdirectories.

Since we're a subdirectory of unimath.github.io, our favicon is set by unimath.github.io; there is currently no favicon for that, and it would set one for both agda-unimath and UniMath.

The third point about "preview content" (usually called "description") is tricky. Best we could do is set a <meta> description tag, but search engines rarely respect those. See Google's documentation:

Snippets are primarily created from the page content itself. However, Google sometimes uses the meta description HTML element if it might give users a more accurate description of the page than content taken directly from the page.

Emphasis mine. I doubt Google can properly judge what is an accurate description of a literate Agda file. My experience is that the search engines will just put whatever they want in there — I checked search results on some websites with proper description tags, and DuckDuckGo, Google and Bing all show different snippets from the page; none of them show the description tag text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed website
Projects
None yet
Development

No branches or pull requests

2 participants