Skip to content

SEO make canonical and hreflang links absolute

Hi all, I'm new here, but looking at improving SEO for the site. This changes

  • canonical url is absolute, google recommends https, it looks like site.url is set to that on the production site
  • link tags with hreflang are absolute
  • I removed the "en" exception so we get a hreflang for en (google says "link to yourself" here)
  • I added an "x-default" hreflang, not SEO, but it's recommended

I should add I'm new to Jekyll, if I've done anything weird, and I'm also not an SEO expert, but I picked up some of the basics along the way :)

I hope this will make localized versions of the site show as the default result for the user's language (e.g. if you're searching in German you should get the https://f-droid.org/de/ link as the default). Some search engines seem to be getting it right already, but Google seems to be extra picky about it.

Merge request reports