aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-11-20 17:13:14 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-11-20 17:13:14 +0000
commite81e5e1c4e2c750138583e7dfd1504b33177a2d8 (patch)
tree3eb6d0c1da85e9ab5c805cc0bd537c71291ba761
parent6df51b5256692543f5dfbb5572138372f0bccd3b (diff)
Add OpenGraph meta elements (for #613).
-rw-r--r--templates/web/fixmystreet/header.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/web/fixmystreet/header.html b/templates/web/fixmystreet/header.html
index 85ed2c0e1..5474c5cff 100644
--- a/templates/web/fixmystreet/header.html
+++ b/templates/web/fixmystreet/header.html
@@ -11,6 +11,16 @@
<meta name="HandHeldFriendly" content="true">
<meta name="mobileoptimized" content="0">
+ <meta property="og:url" content="[% c.cobrand.base_url %][% c.req.uri.path %]">
+ <meta property="og:title" content="[% title || 'FixMyStreet' %]">
+ <meta property="og:site_name" content="[% c.cobrand.site_title %]">
+ [% IF c.req.uri.path == '/' %]<meta property="og:description" content="Report, view, and discuss local street-related problems.">[% END %]
+ <meta property="og:type" content="website">
+ <meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/fixmystreet/fms-og_image.png">
+ <meta property="og:image:type" content="image/png">
+ <meta property="og:image:width" content="500">
+ <meta property="og:image:height" content="500">
+
[% SET start = c.config.ADMIN_BASE_URL IF admin %]
<link rel="stylesheet" href="[% start %][% version('/cobrands/' _ c.cobrand.moniker _ '/base.css') %]">