From af546ab78aa652ae10f2d3190b82e7a3bec4cf90 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 5 Jul 2021 22:58:52 +0200 Subject: plugins: fixed rubocop errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- _plugins/twitter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_plugins/twitter.rb') diff --git a/_plugins/twitter.rb b/_plugins/twitter.rb index cfbef5d..4f2f3d2 100644 --- a/_plugins/twitter.rb +++ b/_plugins/twitter.rb @@ -26,7 +26,7 @@ module Jekyll DEFAULT_PATH = "/images/default.png" def render(context) - img = normalize(context["raw_title"]) + ".png" + 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) + -- cgit v1.2.3