Corrected quote-usage. Replaced [-1].eql with end_with.
Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
This commit is contained in:
parent
2ef9bae75a
commit
ca7375a51b
|
@ -29,7 +29,7 @@ module Jekyll
|
||||||
@permalink = options[:permalink]
|
@permalink = options[:permalink]
|
||||||
|
|
||||||
if (@template || @permalink).nil?
|
if (@template || @permalink).nil?
|
||||||
raise ArgumentError, 'One of :template or :permalink must be supplied.'
|
raise ArgumentError, "One of :template or :permalink must be supplied."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ module Jekyll
|
||||||
.gsub(/\A([^\/])/, '/\1')
|
.gsub(/\A([^\/])/, '/\1')
|
||||||
|
|
||||||
# Append a trailing slash to the URL if the unsanitized URL had one
|
# Append a trailing slash to the URL if the unsanitized URL had one
|
||||||
url << '/' if in_url[-1].eql?('/')
|
url << "/" if in_url.end_with?("/")
|
||||||
|
|
||||||
url
|
url
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue