From 06ce06bfb3fbf7404ddb52e2a9bf64383b1a2540 Mon Sep 17 00:00:00 2001 From: Sherri Mitchell Date: Sun, 4 Sep 2016 21:50:32 -0400 Subject: [PATCH] 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