|
5 | 5 | %meta{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' } |
6 | 6 | %meta{ name: 'robots', content: 'index, follow' } |
7 | 7 | %meta{ property: 'fb:admins', content: '622070503' } |
8 | | - %meta{ property: 'og:type', content: 'website' } |
9 | | - %meta{ property: 'og:locale', content: 'en_GB' } |
10 | | - %meta{ property: 'og:site_name', content: 'codebar' } |
11 | 8 | %meta{ name: 'keywords', content: 'codebar, programming, diversity, html, css, javascript, ruby, python' } |
12 | | - %meta{ property: 'og:image', content: image_url('logo-square.png') } |
13 | | - %meta{ property: 'og:url', content: request.original_url } |
14 | | - %meta{ property: 'og:title', content: 'codebar' } |
15 | | - %meta{ property: 'og:description', content: 'Making tech more diverse and welcoming by bringing people together and helping teach programming skills.' } |
16 | 9 | %meta{ name: 'description', content: 'Making tech more diverse and welcoming by bringing people together and helping teach programming skills.' } |
| 10 | + |
| 11 | + - if content_for? :meta_tags |
| 12 | + = yield :meta_tags |
| 13 | + - else |
| 14 | + = render partial: 'shared/meta_tags' |
| 15 | + |
17 | 16 | %link{ rel: 'icon', sizes: '196x196', href: '/Icon-196.png'} |
18 | 17 | %link{ rel: 'icon', sizes: '128x128', href: '/Icon-128.png'} |
19 | 18 | %link{ rel: 'apple-touch-icon', sizes: '128x128', href: '/Icon-128.png'} |
20 | 19 |
|
21 | | - = content_for :meta_tags |
22 | | - |
23 | | - %link{ rel: 'image_src', href: '/assets/logo-square.png', alt: 'codebar logo' } |
24 | | - |
25 | 20 | %title= retrieve_title |
26 | 21 | = favicon_link_tag 'favicon.ico' |
27 | 22 | = stylesheet_link_tag('application', media: 'all', data: { turbo_track: 'reload' }) |
|
0 commit comments