aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/web/highwaysengland/header_extra.html1
-rw-r--r--templates/web/highwaysengland/header_opengraph.html6
-rw-r--r--templates/web/highwaysengland/header_opengraph_image.html13
-rw-r--r--templates/web/highwaysengland/site-name.html1
-rw-r--r--web/cobrands/highwaysengland/HE_Fav-144x144.jpgbin0 -> 28328 bytes
-rw-r--r--web/cobrands/highwaysengland/facebook-og-image.jpgbin0 -> 78267 bytes
6 files changed, 21 insertions, 0 deletions
diff --git a/templates/web/highwaysengland/header_extra.html b/templates/web/highwaysengland/header_extra.html
index 0011e6285..d9e042da6 100644
--- a/templates/web/highwaysengland/header_extra.html
+++ b/templates/web/highwaysengland/header_extra.html
@@ -1,3 +1,4 @@
<link rel="stylesheet" href="https://use.typekit.net/lgn8iyw.css">
+<link rel="shortcut icon" href="/cobrands/highwaysengland/HE_Fav-144x144.jpg">
[% INCLUDE 'tracking_code.html' %]
diff --git a/templates/web/highwaysengland/header_opengraph.html b/templates/web/highwaysengland/header_opengraph.html
new file mode 100644
index 000000000..d5030ede8
--- /dev/null
+++ b/templates/web/highwaysengland/header_opengraph.html
@@ -0,0 +1,6 @@
+ <meta property="og:url" content="[% c.cobrand.base_url %][% c.req.uri.path %]">
+ <meta property="og:title" content="[% title || site_name %]">
+ <meta property="og:site_name" content="[% site_name %]">
+ [% IF c.req.uri.path == '/' %]<meta property="og:description" content="We carry out regular inspections and maintenance activities, but we also want to hear from you if you spot something wrong with our roads or any of the assets alongside them.">[% END %]
+ <meta property="og:type" content="website">
+ [% INCLUDE 'header_opengraph_image.html' %]
diff --git a/templates/web/highwaysengland/header_opengraph_image.html b/templates/web/highwaysengland/header_opengraph_image.html
new file mode 100644
index 000000000..8284cd83f
--- /dev/null
+++ b/templates/web/highwaysengland/header_opengraph_image.html
@@ -0,0 +1,13 @@
+ [% IF problem.photo %]
+ [% photo = problem.photos.first %]
+ [% data = problem.get_first_image_og %]
+ <meta property="og:image" content="[% c.cobrand.base_url %][% photo.url_og %]">
+ <meta property="og:image:type" content="[% data.content_type %]">
+ <meta property="og:image:width" content="[% data.width %]">
+ <meta property="og:image:height" content="[% data.height %]">
+ [% ELSE %]
+ <meta property="og:image" content="[% c.cobrand.base_url %]/cobrands/highwaysengland/facebook-og-image.jpg">
+ <meta property="og:image:type" content="image/jpeg">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ [% END %]
diff --git a/templates/web/highwaysengland/site-name.html b/templates/web/highwaysengland/site-name.html
new file mode 100644
index 000000000..03c0091cd
--- /dev/null
+++ b/templates/web/highwaysengland/site-name.html
@@ -0,0 +1 @@
+Highways England Report a problem
diff --git a/web/cobrands/highwaysengland/HE_Fav-144x144.jpg b/web/cobrands/highwaysengland/HE_Fav-144x144.jpg
new file mode 100644
index 000000000..733c1e470
--- /dev/null
+++ b/web/cobrands/highwaysengland/HE_Fav-144x144.jpg
Binary files differ
diff --git a/web/cobrands/highwaysengland/facebook-og-image.jpg b/web/cobrands/highwaysengland/facebook-og-image.jpg
new file mode 100644
index 000000000..cb8583d52
--- /dev/null
+++ b/web/cobrands/highwaysengland/facebook-og-image.jpg
Binary files differ