mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Memoize computing excerpt's relative_path (#6951)
Merge pull request 6951
This commit is contained in:
@@ -48,7 +48,7 @@ module Jekyll
|
||||
#
|
||||
# Returns the relative_path for the doc this excerpt belongs to with #excerpt appended
|
||||
def relative_path
|
||||
File.join(doc.relative_path, "#excerpt")
|
||||
@relative_path ||= File.join(doc.relative_path, "#excerpt")
|
||||
end
|
||||
|
||||
# Check if excerpt includes a string
|
||||
|
||||
Reference in New Issue
Block a user