diff options
| author | Douwe Maan <douwe@selenight.nl> | 2017-06-28 19:06:42 -0500 |
|---|---|---|
| committer | Douwe Maan <douwe@selenight.nl> | 2017-06-28 19:06:44 -0500 |
| commit | 3a4fc1246c6ba9fbdb521da56aeb8e341ef5a429 (patch) | |
| tree | d182e93722aa73aa1b43ee15e15b8229acfb4bba | |
| parent | 9f44687a14d57fec596b9736584bf8718df75a2e (diff) | |
| download | gitlab-ce-dm-page-image-size.tar.gz | |
Limit OpenGraph image size to 64x64dm-page-image-size
| -rw-r--r-- | app/views/layouts/_head.html.haml | 2 | ||||
| -rw-r--r-- | changelogs/unreleased/dm-page-image-size.yml | 4 |
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: |
