summaryrefslogtreecommitdiff
path: root/lib/page_local.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/page_local.rb')
-rw-r--r--lib/page_local.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/page_local.rb b/lib/page_local.rb
index 5b2af3b..ad4e970 100644
--- a/lib/page_local.rb
+++ b/lib/page_local.rb
@@ -8,10 +8,12 @@ require 'license'
require 'page'
require 'pandoc'
require 'person'
+require 'sitegen'
class LocalPage < Page
def initialize(infile)
@infile = infile
+ Sitegen::add(self)
end
# Some of this code looks a little weird because it is
@@ -103,6 +105,7 @@ class LocalPage < Page
if @depends.nil?
basename = local_infile.sub(/^src/, 'out').sub(/\.[^\/.]*$/, '')
@depends = {
+ '' => Set[local_infile],
"#{basename}.html" => Set[local_infile, "tmpl/page.html.erb"],
#"#{basename}.atom" => Set[local_infile, "tmpl/page.atom.erb"]
}