app/helpers/spotlight/meta_helper.rb in blacklight-spotlight-3.6.0.beta7 vs app/helpers/spotlight/meta_helper.rb in blacklight-spotlight-3.6.0.beta8
- old
+ new
@@ -44,11 +44,11 @@
def page_opengraph_content(page)
opengraph do |graph|
graph.type 'article'
graph.site_name application_name
graph.title page.title
- graph.send('og:image', page.thumbnail.iiif_url) if page.thumbnail
+ graph.send('image', page.thumbnail.iiif_url) if page.thumbnail
graph.send('article:published_time', page.created_at.iso8601)
graph.send('article:modified_time', page.updated_at.iso8601)
end
end
@@ -67,11 +67,11 @@
def browse_opengraph_content(browse)
opengraph do |graph|
graph.type 'article'
graph.site_name application_name
graph.title browse.title
- graph.send('og:image', browse.thumbnail.iiif_url) if browse.thumbnail
+ graph.send('image', browse.thumbnail.iiif_url) if browse.thumbnail
graph.send('article:published_time', browse.created_at.iso8601)
graph.send('article:modified_time', browse.updated_at.iso8601)
end
end
@@ -93,10 +93,10 @@
presenter = document_presenter(document)
opengraph do |graph|
graph.site_name application_name
graph.title presenter.heading
- graph.send('og:image', document.first(blacklight_config.index.thumbnail_field))
+ graph.send('image', document.first(blacklight_config.index.thumbnail_field))
end
end
end
end