Skip to content

Commit 800b51b

Browse files
committed
Add og:image support with example hammy image.
1 parent f2c9ff4 commit 800b51b

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

_layouts/default.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<script type="text/javascript" src="/javascripts/mobile-nav.js"></script>
2222
<script type="text/javascript" src="/javascripts/application.js"></script>
2323
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" name="viewport">
24+
{% if page.og_image %}
25+
<meta property="og:image" content="{{ page.og_image }}">
26+
{% endif %}
2427
<!--[if IE 8]>
2528
<script src="/assets/html5shiv.js"></script>
2629
<link href="/assets/modules/ie8.css" rel="stylesheet" type="text/css">

_posts/2024-10-15-our-new-design.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: New Design for RubyGems.org
33
layout: post
44
author: Martin Emde
55
author_email: [email protected]
6+
og_image: /images/hammy-og.jpg
67
---
78

89
We are excited to announce the initial release of the new design for RubyGems.org!

images/hammy-og.jpg

90.4 KB
Loading

0 commit comments

Comments
 (0)