summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-25 16:41:02 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-25 16:41:02 +0100
commitbd21e3d7319dce4600881f7f8677b28f3f55cc5e (patch)
tree64cc5e578ca90761b0a7f9e33eec17ce4203a098 /app/views/layouts
parent7d5b51f3877eb209e1215c1154a976bb079b930d (diff)
downloadgitlab-ce-bd21e3d7319dce4600881f7f8677b28f3f55cc5e.tar.gz
Add Open Graph data for group, project and commit.
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_head.html.haml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index 2e0bd2007a3..2e9a34a8807 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -1,13 +1,11 @@
+- site_name = "GitLab"
%head{prefix: "og: http://ogp.me/ns#"}
%meta{charset: "utf-8"}
%meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
- %meta{name: 'referrer', content: 'origin-when-cross-origin'}
-
- %meta{name: "description", content: page_description}
-# Open Graph - http://ogp.me/
%meta{property: 'og:type', content: "object"}
- %meta{property: 'og:site_name', content: "GitLab"}
+ %meta{property: 'og:site_name', content: site_name}
%meta{property: 'og:title', content: page_title}
%meta{property: 'og:description', content: page_description}
%meta{property: 'og:image', content: page_image}
@@ -20,8 +18,9 @@
%meta{property: 'twitter:image', content: page_image}
= page_card_meta_tags
- - page_title "GitLab"
+ - page_title site_name
%title= page_title
+ %meta{name: "description", content: page_description}
= favicon_link_tag 'favicon.ico'
@@ -34,6 +33,7 @@
= include_gon
+ %meta{name: 'referrer', content: 'origin-when-cross-origin'}
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1'}
%meta{name: 'theme-color', content: '#474D57'}