Memoize Document#excerpt_separator (#7569)

Merge pull request 7569
This commit is contained in:
Ashwin Maroli 2019-03-15 22:50:15 +05:30 committed by jekyllbot
parent 4279bafff3
commit 5942ee46ae
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ module Jekyll
#
# Returns the document excerpt_separator
def excerpt_separator
(data["excerpt_separator"] || site.config["excerpt_separator"]).to_s
@excerpt_separator ||= (data["excerpt_separator"] || site.config["excerpt_separator"]).to_s
end
# Whether to generate an excerpt