Skip to content

Commit 9c5a52e

Browse files
committed
Add preview image
1 parent 24eca11 commit 9c5a52e

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

_layouts/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<meta property="og:description" content="{{ page.description | escape_once }}" />
1919
<meta property="twitter:title" content="{{ page.title | escape_once }}" />
2020
<meta property="twitter:description" content="{{ page.description | escape_once }}" />
21+
{% if page.image %}
22+
<meta property="twitter:image" content="{{ site.url }}/{{ page.image }}" />
23+
<meta property="og:image" content="{{ site.url }}/{{ page.image }}" />
24+
{% endif %}
2125

2226
<!-- CSS stolen from mdBook -->
2327
<link rel="stylesheet" href="{{ site.baseurl }}/css/book.css">

_src/evolution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Ruby Evolution
33
prev: /
44
next: 3.1
55
description: A very brief list of new significant features that emerged in Ruby programming language since version 2.0 (2013).
6+
image: images/evolution.png
67
---
78

89
# Ruby Evolution

evolution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Ruby Evolution
33
prev: /
44
next: 3.1
55
description: A very brief list of new significant features that emerged in Ruby programming language since version 2.0 (2013).
6+
image: images/evolution.png
67
---
78

89
# Ruby Evolution

0 commit comments

Comments
 (0)