Memoize the return value of Document#url (#6266)

Merge pull request 6266
This commit is contained in:
Parker Moore 2017-08-04 15:53:26 -04:00 committed by jekyllbot
parent 305e293d46
commit d8dfc33b8b
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ module Jekyll
#
# Returns the computed URL for the document.
def url
@url = URL.new({
@url ||= URL.new({
:template => url_template,
:placeholders => url_placeholders,
:permalink => permalink,