lib/jekyll-bits/picture.rb in jekyll-bits-0.7 vs lib/jekyll-bits/picture.rb in jekyll-bits-0.8
- old
+ new
@@ -30,10 +30,11 @@
# All our custom filters
module JbFilters
def jb_picture_head(page)
uri = uri(page)
return '' if uri.empty?
- "<meta property='og:image' content='#{CGI.escapeElement(uri)}'/>"
+ "<meta name='og:image' content='#{CGI.escapeElement(uri)}'/>\
+<meta name='twitter:image' content='#{CGI.escapeElement(uri)}'/>"
end
def jb_picture_body(page)
uri = uri(page)
return '' if uri.empty?