Minor fix in social meta tags

stable
David Barragán Merino 2015-06-10 16:50:13 +02:00
parent 930eaa3bf6
commit 09754d3df8
2 changed files with 5 additions and 5 deletions

BIN
app/images/logo-color.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -15,7 +15,7 @@ class AppMetaService extends taiga.Service = ->
$("head").append(meta) $("head").append(meta)
meta.text(value or "") meta.text(value or "")
if key.indexOf("og:") == 0 else if key.indexOf("og:") == 0
meta = $("meta[property='#{key}']") meta = $("meta[property='#{key}']")
if meta.length == 0 if meta.length == 0
@ -42,15 +42,15 @@ class AppMetaService extends taiga.Service = ->
@._set("twitter:card", "summary") @._set("twitter:card", "summary")
@._set("twitter:site", "@taigaio") @._set("twitter:site", "@taigaio")
@._set("twitter:title", title) @._set("twitter:title", title)
@._set("twitter:description", truncate(description, 250)) @._set("twitter:description", truncate(description, 300))
@._set("twitter:image", "#{window.location.origin}/images/favicon.png") @._set("twitter:image", "#{window.location.origin}/images/logo-color.png")
setOpenGraphMetas: (title, description) -> setOpenGraphMetas: (title, description) ->
@._set("og:type", "object") @._set("og:type", "object")
@._set("og:site_name", "Taiga - Love your projects") @._set("og:site_name", "Taiga - Love your projects")
@._set("og:title", title) @._set("og:title", title)
@._set("og:description", truncate(description, 250)) @._set("og:description", truncate(description, 300))
@._set("og:image", "#{window.location.origin}/images/favicon.png") @._set("og:image", "#{window.location.origin}/images/logo-color.png")
@._set("og:url", window.location.href) @._set("og:url", window.location.href)
setAll: (title, description) -> setAll: (title, description) ->