diff options
Diffstat (limited to 'lib/page_local.rb')
-rw-r--r-- | lib/page_local.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/page_local.rb b/lib/page_local.rb index 7121c8e..e13fa33 100644 --- a/lib/page_local.rb +++ b/lib/page_local.rb @@ -7,12 +7,11 @@ require 'license' require 'page' require 'pandoc' require 'person' -require 'sitegen' class LocalPage < Page def initialize(infile) @infile = infile - Sitegen::add(self) + super() end # Some of this code looks a little weird because it is @@ -57,7 +56,7 @@ class LocalPage < Page end # Insert the body - @content = _pandoc.to('html5 '+(_pandoc['pandoc_flags']||'')) + @content += _pandoc.to('html5 '+(_pandoc['pandoc_flags']||'')) end @content end @@ -104,10 +103,11 @@ class LocalPage < Page def local_depends if @depends.nil? basename = local_infile.sub(/^src/, 'out').sub(/\.[^\/.]*$/, '') + deps = Set['config.yaml', local_infile] @depends = { - '' => Set[local_infile], - "#{basename}.html" => Set[local_infile, "tmpl/page.html.erb"], - #"#{basename}.atom" => Set[local_infile, "tmpl/page.atom.erb"] + '' => deps, + "#{basename}.html" => deps.clone.merge(["tmpl/page.html.erb"]), + #"#{basename}.atom" => deps.clone.merge([local_infile, "tmpl/page.atom.erb"]), } end @depends |