summaryrefslogtreecommitdiff
path: root/lib/page_index.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 17:09:27 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-01-09 17:09:27 -0500
commita70b39250252962df17670cee743d01d1a6f7c16 (patch)
tree58c390dfd181953cb790d3edfc57e79a5406ff08 /lib/page_index.rb
parent5022d1a0df1534b1cbec1cbee23568f201ea1cc6 (diff)
fix
Diffstat (limited to 'lib/page_index.rb')
-rw-r--r--lib/page_index.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/page_index.rb b/lib/page_index.rb
index fed7e5f..66b528a 100644
--- a/lib/page_index.rb
+++ b/lib/page_index.rb
@@ -3,9 +3,10 @@ require 'erb'
require 'set'
require 'yaml'
+require 'config'
require 'page_local'
require 'page_remote'
-require 'config'
+require 'person'
class IndexPage < LocalPage
def initialize(dirname)
@@ -71,6 +72,9 @@ class IndexPage < LocalPage
def atom_title
_metadata['title']
end
+ def atom_author
+ Person::new(_metadata['author'] || Config::get.default_author)
+ end
def local_intype
return 'markdown'
@@ -95,6 +99,9 @@ class IndexPage < LocalPage
end
@depends
end
+ def url
+ @outurl ||= Config::get.url + local_outfile.sub(/^out/, '').sub(/\/index\.html$/, '/')
+ end
def local_srcurl
return nil
end