summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-23 13:55:15 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-12-23 13:55:15 -0500
commit947a09583b25140ee386229f11c82a0984be2451 (patch)
tree61b9985affb650c05e1687999fd8d376e5dabdd3 /app
parent9f69a0b2294bfcba720dc0ae9e1aadbb6d77205d (diff)
downloadgitlab-ce-947a09583b25140ee386229f11c82a0984be2451.tar.gz
Add Open Graph meta tags
Diffstat (limited to 'app')
-rw-r--r--app/views/layouts/_head.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index 74174a72f5a..be88ad9e2a6 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -1,10 +1,14 @@
- page_title "GitLab"
-%head
+%head{prefix: "og: http://ogp.me/ns#"}
%meta{charset: "utf-8"}
%meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'}
%meta{content: "GitLab Community Edition", name: "description"}
%meta{name: 'referrer', content: 'origin-when-cross-origin'}
+ -# Open Graph - http://ogp.me/
+ %meta{property: 'og:title', content: page_title}
+ %meta{property: 'og:url', content: url_for(only_path: false)}
+
%title= page_title
= favicon_link_tag 'favicon.ico'