summaryrefslogtreecommitdiff
path: root/lib/page_local.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_local.rb
parentbae3d88f0d4ab3481cdbd47ae5ddd65ff5f91e0c (diff)
more
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"]
}