Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: includes/meta/social.tmpl

Issue 29480675: Issue 5329 - Added standard social media meta data to website-defaults (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Added og(title|description) fallbacks Created July 14, 2017, 11:27 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 {% elif title %}
15 <meta property="og:title" content="{{ title }}">
16 {% endif %}
17 {% if og_description %}
18 <meta property="og:description" content="{{ og_description }}">
19 {% elif description %}
20 <meta property="og:description" content="{{ description }}">
21 {% endif %}
22 {% if og_image %}
23 <meta property="og:image" content="{{ og_image }}">
24 {% elif og_site_image %}
25 <meta property="og:image" content="{{ og_site_image }}">
26 {% endif %}
27 <meta property="og:locale" content="{{ locale }}">
28 {% for alternate_locale in locales %}
29 {% if alternate_locale != locale %}
30 <meta property="og:locale:alternate" content="{{ alternate_locale }}">
31 {% endif %}
32 {% endfor %}
33
34 {# facebook #}
35
36 {% if facebook_id %}
37 <meta property="fb:app_id" content="{{ facebook_id }}">
38 {% endif %}
39
40 {# twitter #}
41
42 {% if twitter_site %}
43 <meta name="twitter:site" content="@{{ twitter_site }}">
44 {% endif %}
45 {% if twitter_card %}
46 <meta name="twitter:card" content="{{ twitter_card }}">
47 {% elif og_image or og_site_image %}
48 <meta name="twitter:card" content="summary_large_image">
49 {% else %}
50 <meta name="twitter:card" content="summary">
51 {% endif %}
52 {% if twitter_image_alt %}
53 <meta name="twitter:image:alt" content="{{ twitter_image_alt }}">
54 {% endif %}
55
56 {# pinterest #}
57
58 {% if pinterest_id %}
59 <meta name="p:domain_verify" content="{{ pinterest_id }}">
60 {% endif %}
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld