| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 {# open graph #} | |
| 2 | |
| 3 {% if host and page %} | |
| 4 <meta property="og:url" content="{{ host }}/{{ page }}"> | |
|
juliandoucette
2017/07/05 21:47:25
Note: I created an issue to provide us with a bett
ire
2017/07/07 16:05:06
Acknowledged.
| |
| 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 }}"> | |
| 14 {% endif %} | |
| 15 {% if og_description %} | |
| 16 <meta property="og:descirption" content="{{ og_description }}"> | |
|
ire
2017/07/07 16:05:06
Typo in "og:descirption"
juliandoucette
2017/07/07 20:05:20
Done.
Good eye.
ire
2017/07/10 07:50:57
Thanks :)
| |
| 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 }}"> | |
|
juliandoucette
2017/07/05 21:47:25
Note: I'm not sure if the accepted locales are the
ire
2017/07/07 16:05:06
Should this be wrapped in an if statement? Or is l
juliandoucette
2017/07/07 20:05:20
locale is always set. A default must be set in set
ire
2017/07/10 07:50:57
Acknowledged.
| |
| 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 {# twitter #} | |
| 31 | |
| 32 {% if twitter_site %} | |
| 33 <meta name="twitter:site" content="@{{ twitter_site }}"> | |
| 34 {% endif %} | |
| 35 {% if twitter_card %} | |
| 36 <meta name="twitter:card" content="{{ twitter_card }}"> | |
| 37 {% else if og_image or og_site_image %} | |
| 38 <meta name="twitter:card" content="summary_large_image"> | |
| 39 {% else %} | |
| 40 <meta name="twitter:card" content="summary"> | |
| 41 {% endif %} | |
| 42 {% if twitter_image_alt %} | |
| 43 <meta name="twitter:image:alt" content="{{ twitter_image_alt }}"> | |
| 44 {% endif %} | |
| OLD | NEW |