mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
Add canonical link for search engine deduplication
This commit is contained in:
parent
e33be9c8de
commit
d79f453758
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue