Merge pull request #6 from BytewaveMLP/master

Add canonical link for search engine deduplication
This commit is contained in:
Luna D 2019-12-20 09:19:48 +01:00 committed by GitHub
commit 5fe3fc2e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"