Skip to content

Commit

Permalink
Add og:image support with example hammy image. (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
simi authored Oct 28, 2024
1 parent f2c9ff4 commit ec9358a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<script type="text/javascript" src="/javascripts/mobile-nav.js"></script>
<script type="text/javascript" src="/javascripts/application.js"></script>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" name="viewport">
{% if page.og_image %}
<meta property="og:image" content="{{ page.og_image }}">
{% endif %}
<!--[if IE 8]>
<script src="/assets/html5shiv.js"></script>
<link href="/assets/modules/ie8.css" rel="stylesheet" type="text/css">
Expand Down
1 change: 1 addition & 0 deletions _posts/2024-10-15-our-new-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: New Design for RubyGems.org
layout: post
author: Martin Emde
author_email: [email protected]
og_image: /images/hammy-og.jpg
---

We are excited to announce the initial release of the new design for RubyGems.org!
Expand Down
Binary file added images/hammy-og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec9358a

Please sign in to comment.