Add open graph metadata to event#show

This commit is contained in:
Sherri Mitchell 2016-09-08 14:34:27 -04:00
parent c48c8afa51
commit 68594bd3cd
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,7 @@
%title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM')
%meta{:content => "", :name => "description"}
%meta{:content => "", :name => "author"}
%meta= content_for?(:head) ? yield(:head) : ('')
= stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"

View file

@ -1,3 +1,10 @@
- content_for :head do
%meta{ :property => 'og:title', :content => @conference.title }
%meta{ :property => 'og:image', :content => @conference.picture_url }
%meta{ :property => 'og:url', :content => conference_path(@conference.short_title) }
%meta{ :property => 'og:description', :content => @conference.description }
%meta{ :property => 'og:site_name', :content => (ENV['OSEM_NAME'] || 'OSEM') }
.container
.row
.col-md-12.page-header