summaryrefslogtreecommitdiff
path: root/app/views/layouts/_head.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-25 13:35:57 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-25 13:35:57 +0100
commit0980dda6cdab6dc35cfa9a8b7b7b67fcd73ea699 (patch)
treee92392242d7a9182a17a303454087db2f5946d53 /app/views/layouts/_head.html.haml
parent4a2514ff0e1cf88786dcaf168b50af540568e79d (diff)
downloadgitlab-ce-0980dda6cdab6dc35cfa9a8b7b7b67fcd73ea699.tar.gz
Add more twitter metatags.
Diffstat (limited to 'app/views/layouts/_head.html.haml')
-rw-r--r--app/views/layouts/_head.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index 2002f66af0e..0be00da0b9e 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -6,11 +6,17 @@
%meta{name: 'referrer', content: 'origin-when-cross-origin'}
-# Open Graph - http://ogp.me/
+ %meta{property: 'og:type', content: "object"}
%meta{property: 'og:site_name', content: "GitLab"}
%meta{property: 'og:title', content: page_title}
%meta{property: 'og:description', content: page_description}
%meta{property: 'og:image', content: page_image}
%meta{property: 'og:url', content: request.base_url + request.fullpath}
+
+ %meta{property: 'twitter:card', content: "summary"}
+ %meta{property: 'twitter:title', content: page_title}
+ %meta{property: 'twitter:description', content: page_description}
+ %meta{property: 'twitter:image', content: page_image}
= page_card_meta_tags
- page_title "GitLab"