Add canonical link for search engine deduplication

This commit is contained in:
Eliot Partridge 2019-12-20 00:00:53 -06:00
parent e33be9c8de
commit d79f453758
No known key found for this signature in database
GPG key ID: 453671FE287AE876

View file

@ -21,6 +21,8 @@ meta name="robots" content="noindex, nofollow"
link rel="alternate" type="application/json+oembed" href=Routes.api_json_oembed_url(@conn, :index, url: Routes.image_path(@conn, :show, image)) title="oEmbed JSON Profile"
link rel="canonical" href=Routes.image_url(@conn, :show, image)
= cond do
- image.image_mime_type == "video/webm" and not filtered ->
meta property="og:type" content="video.other"