elixir-lang / elixir-lang.github.com

Website for Elixir
elixir-lang.org
355 stars 824 forks source link

Set og:image meta for seo by default on all pages #1747

Closed sorentwo closed 9 months ago

sorentwo commented 9 months ago

Links to the site don't generate a "social" preview without an og:image or twitter:image tag. This adds a larger variant of the horizontal logo and sets it as the default social image. It may be nice to set per-page social images for blog posts and cases, but I didn't tackle that in this PR.

One unrelated addition here is replacing the pixelated RSS feed png with a scalable svg because it neighbored the new elixir-og-card.jpg.

How to set images is described in "Advanced Usage" in the jekyll-seo reference.

josevalim commented 9 months ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

josevalim commented 9 months ago

Unfortunately I had to revert this PR because it broke all blog links. For example, it was linking to https://elixir-lang.org/releases/elixir-v1-16-0-released.html instead of /blog/2023/....

Can you please take a look and resubmit @sorentwo?