memoize path to metadata file (#6602)

Merge pull request 6602
This commit is contained in:
ashmaroli 2017-12-15 13:41:39 +05:30 committed by jekyllbot
parent c471f94347
commit e149803e99
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ module Jekyll
# #
# Returns the String path of the file. # Returns the String path of the file.
def metadata_file def metadata_file
site.in_source_dir(".jekyll-metadata") @metadata_file ||= site.in_source_dir(".jekyll-metadata")
end end
# Check if metadata has been disabled # Check if metadata has been disabled