summaryrefslogtreecommitdiff
path: root/lib/page_index.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:14:22 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-07 00:14:22 -0500
commit3d989e2caf683d8300ae4e8191b81fd6fe0c0948 (patch)
tree3201b014adf279de37f64ac222e551c1781eadcd /lib/page_index.rb
parentbae3d88f0d4ab3481cdbd47ae5ddd65ff5f91e0c (diff)
more
Diffstat (limited to 'lib/page_index.rb')
-rw-r--r--lib/page_index.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/page_index.rb b/lib/page_index.rb
index 6354c8a..178525c 100644
--- a/lib/page_index.rb
+++ b/lib/page_index.rb
@@ -72,8 +72,9 @@ class IndexPage < LocalPage
if File::exist?(yamlfile)
deps.add(yamlfile)
end
- index_pages.each{|p|deps.merge(p.local_outfile[''])}
+ index_pages.select{|p|!p.is_a?(RemotePage)}.each{|p|deps.merge(p.local_depends[''])}
@depends = {
+ '' => deps,
"#{basename}/index.html" => deps.clone.merge(["tmpl/index.md.erb", "tmpl/page.html.erb"]),
"#{basename}/index.atom" => deps.clone.merge(["tmpl/index.atom.erb", "tmpl/page.atom.erb"]),
}