From ab49d7b5e807c5ad8dc4078d2ac8c449b937e17d Mon Sep 17 00:00:00 2001 From: Parth Modi Date: Wed, 24 May 2017 22:35:07 +0530 Subject: [PATCH] `.present?` changed to `to_s.empty?` as `.present?` is rails specific --- lib/jekyll-seo-tag/drop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-seo-tag/drop.rb b/lib/jekyll-seo-tag/drop.rb index 7656b06..fd16c1f 100644 --- a/lib/jekyll-seo-tag/drop.rb +++ b/lib/jekyll-seo-tag/drop.rb @@ -183,7 +183,7 @@ module Jekyll def canonical_url @canonical_url ||= begin - if page["canonical_url"].present? + if !page["canonical_url"].to_s.empty? page["canonical_url"] else filters.absolute_url(page["url"]).to_s.gsub(%r!/index\.html$!, "/")