summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-29 12:52:27 +0000
committerRémy Coutable <remy@rymai.me>2017-06-29 12:52:27 +0000
commit4f1d3c62f58aec2d795c0b4546bb5d69b2317d65 (patch)
tree13d545c887f10a908ab9442f86ef1c31c4a381a3
parentd9432c47527f852d774804d42c958483377be0ac (diff)
parent3a4fc1246c6ba9fbdb521da56aeb8e341ef5a429 (diff)
downloadgitlab-ce-4f1d3c62f58aec2d795c0b4546bb5d69b2317d65.tar.gz
Merge branch 'dm-page-image-size' into 'master'
Limit OpenGraph image size to 64x64 See merge request !12541
-rw-r--r--app/views/layouts/_head.html.haml2
-rw-r--r--changelogs/unreleased/dm-page-image-size.yml4
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml
index eabc9a3b01c..cc710f4ec7d 100644
--- a/app/views/layouts/_head.html.haml
+++ b/app/views/layouts/_head.html.haml
@@ -11,6 +11,8 @@
%meta{ property: 'og:title', content: page_title }
%meta{ property: 'og:description', content: page_description }
%meta{ property: 'og:image', content: page_image }
+ %meta{ property: 'og:image:width', content: '64' }
+ %meta{ property: 'og:image:height', content: '64' }
%meta{ property: 'og:url', content: request.base_url + request.fullpath }
-# Twitter Card - https://dev.twitter.com/cards/types/summary
diff --git a/changelogs/unreleased/dm-page-image-size.yml b/changelogs/unreleased/dm-page-image-size.yml
new file mode 100644
index 00000000000..b18c00470fc
--- /dev/null
+++ b/changelogs/unreleased/dm-page-image-size.yml
@@ -0,0 +1,4 @@
+---
+title: Limit OpenGraph image size to 64x64
+merge_request:
+author: