Add Open Graph metadata to conference#show

This commit is contained in:
Sherri Mitchell
2016-09-04 21:50:32 -04:00
committed by Christian Bruckmayer
parent ee91e72440
commit 06ce06bfb3

View File

@@ -1,3 +1,12 @@
- content_for :head do
%meta{ property: "og:title", content: @conference.title }
%meta{ property: "og:site_name", content: (ENV['OSEM_NAME'] || 'OSEM') }
%meta{ property: "og:description", content: @conference.description }
%meta{ property: "og:url", content: conference_url(@conference.short_title) }
- if @conference.picture?
%meta{ property: "og:image", content: @conference.picture_url }
%meta{ property: "og:image:secure_url", content: @conference.picture_url }
= content_for :title do
= @conference.title