OLD | NEW |
(Empty) | |
| 1 {# |
| 2 # This file is part of website-defaults |
| 3 # Copyright (C) 2016-2017 eyeo GmbH |
| 4 # |
| 5 # website-defaults is free software: you can redistribute it and/or |
| 6 # modify it under the terms of the GNU General Public License as published by |
| 7 # the Free Software Foundation, either version 3 of the License, or |
| 8 # (at your option) any later version. |
| 9 # |
| 10 # website-defaults is distributed in the hope that it will be useful, |
| 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 # GNU General Public License for more details. |
| 14 # |
| 15 # You should have received a copy of the GNU General Public License |
| 16 # along with website-defaults. If not, see <http://www.gnu.org/licenses/>. |
| 17 #} |
| 18 |
| 19 {# open graph #} |
| 20 |
| 21 {% if host and page %} |
| 22 <meta property="og:url" content="{{ host }}/{{ page }}"> |
| 23 {% endif %} |
| 24 {% if og_type %} |
| 25 <meta property="og:type" content="{{ og_type }}"> |
| 26 {% endif %} |
| 27 {% if og_site_name %} |
| 28 <meta property="og:site_name" content="{{ og_site_name }}"> |
| 29 {% endif %} |
| 30 {% if og_title %} |
| 31 <meta property="og:title" content="{{ og_title }}"> |
| 32 {% elif title %} |
| 33 <meta property="og:title" content="{{ title }}"> |
| 34 {% endif %} |
| 35 {% if og_description %} |
| 36 <meta property="og:description" content="{{ og_description }}"> |
| 37 {% elif description %} |
| 38 <meta property="og:description" content="{{ description }}"> |
| 39 {% endif %} |
| 40 {% if og_image %} |
| 41 <meta property="og:image" content="{{ og_image }}"> |
| 42 {% elif og_site_image %} |
| 43 <meta property="og:image" content="{{ og_site_image }}"> |
| 44 {% endif %} |
| 45 <meta property="og:locale" content="{{ locale }}"> |
| 46 {% for alternate_locale in locales %} |
| 47 {% if alternate_locale != locale %} |
| 48 <meta property="og:locale:alternate" content="{{ alternate_locale }}"> |
| 49 {% endif %} |
| 50 {% endfor %} |
| 51 |
| 52 {# facebook #} |
| 53 |
| 54 {% if facebook_id %} |
| 55 <meta property="fb:app_id" content="{{ facebook_id }}"> |
| 56 {% endif %} |
| 57 |
| 58 {# twitter #} |
| 59 |
| 60 {% if twitter_site %} |
| 61 <meta name="twitter:site" content="@{{ twitter_site }}"> |
| 62 {% endif %} |
| 63 {% if twitter_card %} |
| 64 <meta name="twitter:card" content="{{ twitter_card }}"> |
| 65 {% elif og_image or og_site_image %} |
| 66 <meta name="twitter:card" content="summary_large_image"> |
| 67 {% else %} |
| 68 <meta name="twitter:card" content="summary"> |
| 69 {% endif %} |
| 70 {% if twitter_image_alt %} |
| 71 <meta name="twitter:image:alt" content="{{ twitter_image_alt }}"> |
| 72 {% endif %} |
| 73 |
| 74 {# pinterest #} |
| 75 |
| 76 {% if pinterest_id %} |
| 77 <meta name="p:domain_verify" content="{{ pinterest_id }}"> |
| 78 {% endif %} |
OLD | NEW |