mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add Open Graph metadata to conference#show
This commit is contained in:
parent
ee91e72440
commit
06ce06bfb3
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue