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 }}"> |
| 14 {% endif %} |
| 15 {% if og_description %} |
| 16 <meta property="og:description" content="{{ og_description }}"> |
| 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 {# 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 |