Class: Aardi::Home

Inherits:
AbstractBlog show all
Defined in:
lib/aardi/home.rb

Instance Attribute Summary

Attributes inherited from AbstractBlog

#key

Instance Method Summary collapse

Methods inherited from AbstractBlog

#metadata, #mtime

Constructor Details

#initialize(posts, archive_path) ⇒ Home

Returns a new instance of Home.



5
6
7
8
# File 'lib/aardi/home.rb', line 5

def initialize(posts, archive_path)
  @posts = posts
  @archive_path = archive_path
end

Instance Method Details

#contentObject



10
11
12
# File 'lib/aardi/home.rb', line 10

def content
  "# #{title}\n#{post_days_content}#{}"
end

#renderObject



14
15
16
17
# File 'lib/aardi/home.rb', line 14

def render
  Aardi.ledger[:sitemap].update_mtime('/', mtime)
  write_target
end

#target_pathObject



19
# File 'lib/aardi/home.rb', line 19

def target_path = './index.html'

#titleObject



21
# File 'lib/aardi/home.rb', line 21

def title = Aardi.config[:blog_home_title]