diff --git a/app/views/conference/show.html.haml b/app/views/conference/show.html.haml index 9ec9781f..8f7878cb 100644 --- a/app/views/conference/show.html.haml +++ b/app/views/conference/show.html.haml @@ -1,9 +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') } + %meta{ :property => "og:title", :content => @conference.title } + %meta{ :property => "og:site_name", :content => (ENV['OSEM_NAME'] || 'OSEM') } + - @conference[:picture] + %meta{property: "og:image:secure_url", content: @conference.picture_url} + %meta{ :property => "og:description", :content => @conference.description } + %meta{ :property => "og:url", :content => @conference.short_title } = content_for :title do = @conference.title diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 355edc46..7f8ca0b7 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -5,7 +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) : ('') + = content_for?(:head) ? yield(:head) : ('') = stylesheet_link_tag "application", :media => "all" = javascript_include_tag "application"