Fixes an issue with canonical urls for sharing with Facebook and other social media sites
This commit is contained in:
parent
68594bd3cd
commit
06d7a762b4
2 changed files with 7 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
%title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM')
|
%title= content_for?(:title) ? yield(:title) : (ENV['OSEM_NAME'] || 'OSEM')
|
||||||
%meta{:content => "", :name => "description"}
|
%meta{:content => "", :name => "description"}
|
||||||
%meta{:content => "", :name => "author"}
|
%meta{:content => "", :name => "author"}
|
||||||
%meta= content_for?(:head) ? yield(:head) : ('')
|
= content_for?(:head) ? yield(:head) : ('')
|
||||||
= stylesheet_link_tag "application", :media => "all"
|
= stylesheet_link_tag "application", :media => "all"
|
||||||
= javascript_include_tag "application"
|
= javascript_include_tag "application"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
- content_for :head do
|
- content_for :head do
|
||||||
%meta{ :property => 'og:title', :content => @conference.title }
|
%meta{ :property => "og:title", :content => @event.title }
|
||||||
%meta{ :property => 'og:image', :content => @conference.picture_url }
|
%meta{ :property => "og:url", :content => conference_program_proposal_url(@conference.short_title, @event) }
|
||||||
%meta{ :property => 'og:url', :content => conference_path(@conference.short_title) }
|
%meta{ :property => "og:description", :content => @conference.description }
|
||||||
%meta{ :property => 'og:description', :content => @conference.description }
|
%meta{ :property => "og:site_name", :content => (ENV['OSEM_NAME'] || 'OSEM') }
|
||||||
%meta{ :property => 'og:site_name', :content => (ENV['OSEM_NAME'] || 'OSEM') }
|
- @conference[:picture]
|
||||||
|
%meta{property: "og:image:secure_url", content: @conference.picture_url}
|
||||||
|
|
||||||
.container
|
.container
|
||||||
.row
|
.row
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue