Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the property attribute for og:image meta tags #2988

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/helpers/spotlight/meta_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def page_opengraph_content(page)
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
Expand All @@ -69,7 +69,7 @@ def browse_opengraph_content(browse)
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
Expand All @@ -95,7 +95,7 @@ def document_opengraph_content(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
Expand Down
Loading