Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/views/shared/_meta_tags.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
%meta{ property: 'og:type', content: 'website' }
%meta{ property: 'og:url', content: request.original_url }
%meta{ property: 'og:image', content: image_url('codebar-social.jpg') }
%meta{ property: 'og:image:width', content: '1200' }
%meta{ property: 'og:image:height', content: '630' }
%meta{ property: 'og:image:alt', content: 'codebar - making tech more diverse and welcoming' }
%meta{ property: 'og:description', content: 'Making tech more diverse and welcoming by bringing people together and helping teach programming skills.' }
%meta{ property: 'og:site_name', content: 'codebar' }
%meta{ property: 'og:locale', content: 'en_GB' }
Expand Down
2 changes: 1 addition & 1 deletion app/views/workshops/_meta_tags.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = if workshop.virtual?
t('workshops.virtual.title_with_date', chapter: workshop.chapter.name, date: humanize_date(workshop.date_and_time))
else
t('workshop.title', host: workshop.host.name, date: humanize_date(workshop.date_and_time))
t('workshop.title', host: workshop.host&.name || 'codebar', date: humanize_date(workshop.date_and_time))
end
url = request.original_url
image = workshop.host.try(:image_url).presence || image_url('codebar-social.jpg')
Expand Down