aboutsummaryrefslogtreecommitdiff
path: root/_plugins/type.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/type.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/type.rb')
-rw-r--r--_plugins/type.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/_plugins/type.rb b/_plugins/type.rb
index 2d9ac92..8c4c2b8 100644
--- a/_plugins/type.rb
+++ b/_plugins/type.rb
@@ -39,6 +39,7 @@ module Jekyll
def render_article_tags(page)
tags = page["tags"].inject("") { |acc, t| acc + render_meta("article:tag", t) }
+ # rubocop:disable Style/StringConcatenation
'<meta property="og:type" content="article" />' +
render_meta("og:author", "Miquel Sabaté Solà") +
render_meta("profile:first_name", "Miquel") +
@@ -49,6 +50,7 @@ module Jekyll
render_meta("article:published_time", published_time(page)) +
render_meta("article:modified_time", modified_time(page)) +
tags
+ # rubocop:enable Style/StringConcatenation
end
# Returns the published time of the given page.