From ad4d366b712a605a6c34e9aff0a31def4c6254ee Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 1 Jul 2016 23:42:12 -0700 Subject: [PATCH] Added facebook meta tags --- app/views/layouts/application.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ed8a180..0c7fa8b 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -4,7 +4,8 @@ %meta{ charset: 'utf-8' } %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0' } -#%title= (yield :title) + (content_for?(:title) ? (_!' | ') : '') + (_!'Bike!Bike!') - %title=_!('Bike!Bike!' + (content_for?(:title) ? " - #{yield :title}" : '')) + - title = yield :title + %title=_!('Bike!Bike!' + (content_for?(:title) ? " - #{title}" : '')) %meta{ name: 'description', content: (yield_or_default :description, I18n.t('page_descriptions.home')) } = csrf_meta_tags = stylesheets @@ -13,6 +14,8 @@ - @alt_lang_urls.each do |locale, url| %link{ rel: :alternate, hreflang: locale, href: url } - if content_for?(:og_image) + %meta{property: 'og:title', content: title} + %meta{property: 'og:type', content: "website"} %meta{property: 'og:image', content: (yield :og_image)} -#%link{ href: asset_path('apple-touch-icon.png'), rel: 'apple-touch-icon' } -#%link{ href: asset_path('apple-touch-icon-72x72.png'), rel: 'apple-touch-icon', sizes: '72x72' }