diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-10-20 21:26:47 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-10-20 21:26:47 +0200 |
| commit | ad5c8f0bb528e6d0da0a20f99997ce971544f4b8 (patch) | |
| tree | 781358afd99380e9260cf88d638ce587f364704e /_plugins/twitter.rb | |
| parent | 86e58a3fc98fc69a133e621b713773d2b8a5efe9 (diff) | |
| download | jo.mssola.com-ad5c8f0bb528e6d0da0a20f99997ce971544f4b8.tar.gz jo.mssola.com-ad5c8f0bb528e6d0da0a20f99997ce971544f4b8.zip | |
More refining on twitter cards
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_plugins/twitter.rb')
| -rw-r--r-- | _plugins/twitter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_plugins/twitter.rb b/_plugins/twitter.rb index 2c9cbfd..e65831b 100644 --- a/_plugins/twitter.rb +++ b/_plugins/twitter.rb @@ -25,6 +25,8 @@ module Jekyll img = normalize(context["raw_title"]) + ".png" path = image_exists?(img) ? "/images/posts/#{img}" : DEFAULT_PATH render_meta("og:image", "http://jo.mssola.com#{path}") + + render_meta("og:image:width", 630) + + render_meta("og:image:height", 315) + render_meta("twitter:image", "http://jo.mssola.com#{path}", name: true) end |
