Skip to content

Commit a570819

Browse files
committed
Track dependencies for archives
1 parent 8e44397 commit a570819

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/jekyll-archives/archive.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def initialize(site, title, type, posts)
4747
"layout" => layout
4848
}
4949
@content = ""
50+
51+
# set up dependencies
52+
posts.each do |post|
53+
site.regenerator.add_dependency(self.path, post.path)
54+
end
5055
end
5156

5257
# The template of the permalink.

0 commit comments

Comments
 (0)