Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 {# open graph #} | |
2 | |
3 {% if host and page %} | |
4 <meta property="og:url" content="{{ host }}/{{ page }}"> | |
5 {% endif %} | |
6 {% if og_type %} | |
7 <meta property="og:type" content="{{ og_type }}"> | |
8 {% endif %} | |
9 {% if og_site_name %} | |
10 <meta property="og:site_name" content="{{ og_site_name }}"> | |
11 {% endif %} | |
12 {% if og_title %} | |
13 <meta property="og:title" content="{{ og_title }}"> | |
juliandoucette
2017/07/11 12:10:45
I think I should add a fallback here for social ne
ire
2017/07/12 07:55:19
I agree.
I may be confused with your term "fallba
juliandoucette
2017/07/12 15:52:38
I'm suggesting:
if og_title
og:title = og_title
ire
2017/07/13 09:39:46
Ah right. I read your initial statement in the wro
juliandoucette
2017/07/14 11:27:31
RE: Will title be different than og:title (and ali
juliandoucette
2017/07/14 11:27:31
Done.
ire
2017/07/17 07:18:22
Okay makes sense. Thanks.
| |
14 {% endif %} | |
15 {% if og_description %} | |
16 <meta property="og:description" content="{{ og_description }}"> | |
juliandoucette
2017/07/11 12:10:45
I think I should add a fallback here for social ne
juliandoucette
2017/07/14 11:27:31
Done.
| |
17 {% endif %} | |
18 {% if og_image %} | |
19 <meta property="og:image" content="{{ og_image }}"> | |
20 {% else if og_site_image %} | |
21 <meta property="og:image" content="{{ og_site_image }}"> | |
22 {% endif %} | |
23 <meta property="og:locale" content="{{ locale }}"> | |
24 {% for alternate_locale in locales %} | |
25 {% if alternate_locale != locale %} | |
26 <meta property="og:locale:alternate" content="{{ alternate_locale }}"> | |
27 {% endif %} | |
28 {% endfor %} | |
29 | |
30 {# facebook #} | |
31 | |
32 {% if facebook_id %} | |
33 <meta property="fb:app_id" content="{{ facebook_id }}"> | |
34 {% endif %} | |
35 | |
36 {# twitter #} | |
37 | |
38 {% if twitter_site %} | |
39 <meta name="twitter:site" content="@{{ twitter_site }}"> | |
40 {% endif %} | |
41 {% if twitter_card %} | |
42 <meta name="twitter:card" content="{{ twitter_card }}"> | |
43 {% else if og_image or og_site_image %} | |
44 <meta name="twitter:card" content="summary_large_image"> | |
45 {% else %} | |
46 <meta name="twitter:card" content="summary"> | |
47 {% endif %} | |
48 {% if twitter_image_alt %} | |
49 <meta name="twitter:image:alt" content="{{ twitter_image_alt }}"> | |
50 {% endif %} | |
51 | |
52 {# pinterest #} | |
53 | |
54 {% if pinterest_id %} | |
55 <meta name="p:domain_verify" content="{{ pinterest_id }}"> | |
56 {% endif %} | |
OLD | NEW |