mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
Merge pull request #6 from BytewaveMLP/master
Add canonical link for search engine deduplication
This commit is contained in:
commit
5fe3fc2e00
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