This commit is contained in:
Nicolas Bally 2016-08-03 17:39:37 +02:00
parent da1b49cb21
commit 256fbe74df

View File

@ -20,8 +20,8 @@
=raw '<meta property="og:title" content="'+@title.to_s+'" />'
=raw '<meta property="og:description" content="'+@description.to_s+'" />'
-if @facebook_img
=raw '<meta property="og:image" content="http://heylium.quartz.xyz'+@facebook_img.to_s+'"/>'
=raw '<link rel="image_src" href="http://heylium.quartz.xyz'+@facebook_img.to_s+'"/>'
=raw '<meta property="og:image" content="http://heylium.io'+@facebook_img.to_s+'"/>'
=raw '<link rel="image_src" href="http://heylium.io'+@facebook_img.to_s+'"/>'
=raw '<meta name="twitter:card" content="summary_large_image">'
@ -31,12 +31,12 @@
=raw '<meta property="twitter:url" content="'+request.url.to_s+'"/>'
=raw '<meta property="twitter:image" content="http://heylium.quartz.xyz'+@facebook_img.to_s+'"/>'
=raw '<meta property="twitter:image" content="http://heylium.io'+@facebook_img.to_s+'"/>'
-@img_size = FastImage.size('http://heylium.quartz.xyz'+@facebook_img.to_s)
-@img_size = FastImage.size('http://heylium.io'+@facebook_img.to_s)
-if @img_size and @img_size.size > 0
=raw '<meta property="og:image:width" content="'+@img_size[0].to_s+'"/>'