s/if !/unless/

This commit is contained in:
Ben Balter 2017-05-25 09:29:09 -04:00 committed by GitHub
parent 6f9919bf3e
commit 83d7c3dd63
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ module Jekyll
def canonical_url
@canonical_url ||= begin
if !page["canonical_url"].to_s.empty?
unless page["canonical_url"].to_s.empty?
page["canonical_url"]
else
filters.absolute_url(page["url"]).to_s.gsub(%r!/index\.html$!, "/")