mirror of
https://github.com/openSUSE/osem.git
synced 2026-06-16 19:51:17 -04:00
Add Open Graph metadata to conference#show
This commit is contained in:
committed by
Christian Bruckmayer
parent
ee91e72440
commit
06ce06bfb3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user