From ee91e72440268fcb476b8a92954bdfe5c8103d75 Mon Sep 17 00:00:00 2001 From: Sherri Mitchell Date: Thu, 8 Sep 2016 14:34:27 -0400 Subject: [PATCH 1/2] Add Open Graph metadata to event#show --- app/views/proposals/show.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/proposals/show.html.haml b/app/views/proposals/show.html.haml index bc08c14c..7953a695 100644 --- a/app/views/proposals/show.html.haml +++ b/app/views/proposals/show.html.haml @@ -1,3 +1,11 @@ +- content_for :head do + %meta{ property: "og:title", content: @event.title } + %meta{ property: "og:url", content: conference_program_proposal_url(@conference.short_title, @event) } + %meta{ property: "og:description", content: @event.abstract } + %meta{ property: "og:site_name", content: (ENV['OSEM_NAME'] || 'OSEM') } + %meta{ property: "og:image", content: @speaker.gravatar_url } + %meta{ property: "og:image:secure_url", content: @speaker.gravatar_url } + .container .row .col-md-12.page-header From 06ce06bfb3fbf7404ddb52e2a9bf64383b1a2540 Mon Sep 17 00:00:00 2001 From: Sherri Mitchell Date: Sun, 4 Sep 2016 21:50:32 -0400 Subject: [PATCH 2/2] Add Open Graph metadata to conference#show --- app/views/conferences/show.html.haml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/conferences/show.html.haml b/app/views/conferences/show.html.haml index 90a9b4eb..fb488e22 100644 --- a/app/views/conferences/show.html.haml +++ b/app/views/conferences/show.html.haml @@ -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