Memoize the return value of Document#url (#6266)
Merge pull request 6266
This commit is contained in:
parent
305e293d46
commit
d8dfc33b8b
|
@ -204,7 +204,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the computed URL for the document.
|
# Returns the computed URL for the document.
|
||||||
def url
|
def url
|
||||||
@url = URL.new({
|
@url ||= URL.new({
|
||||||
:template => url_template,
|
:template => url_template,
|
||||||
:placeholders => url_placeholders,
|
:placeholders => url_placeholders,
|
||||||
:permalink => permalink,
|
:permalink => permalink,
|
||||||
|
|
Loading…
Reference in New Issue