aboutsummaryrefslogtreecommitdiff
path: root/_plugins/twitter.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-07-05 22:58:52 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2021-07-05 22:58:52 +0200
commitaf546ab78aa652ae10f2d3190b82e7a3bec4cf90 (patch)
treeddae1a47f77d3c195cba017b48a4bcae2cb1a513 /_plugins/twitter.rb
parenta59e0d8ac76425bb2f52d8c1abf4d19fea1458f0 (diff)
downloadjo.mssola.com-af546ab78aa652ae10f2d3190b82e7a3bec4cf90.tar.gz
jo.mssola.com-af546ab78aa652ae10f2d3190b82e7a3bec4cf90.zip
plugins: fixed rubocop errors
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_plugins/twitter.rb')
-rw-r--r--_plugins/twitter.rb2
1 files changed, 1 insertions, 1 deletions
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) +