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: Fixed typo on og:description Created July 7, 2017, 7:55 p.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 {% 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 %}
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