Class: Aardi::Home
- Inherits:
-
AbstractBlog
- Object
- AbstractBlog
- Aardi::Home
- Defined in:
- lib/aardi/home.rb
Instance Attribute Summary
Attributes inherited from AbstractBlog
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(posts, archive_path) ⇒ Home
constructor
A new instance of Home.
- #render ⇒ Object
- #target_path ⇒ Object
- #title ⇒ Object
Methods inherited from AbstractBlog
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
#content ⇒ Object
10 11 12 |
# File 'lib/aardi/home.rb', line 10 def content "# #{title}\n#{post_days_content}#{}" end |
#render ⇒ Object
14 15 16 17 |
# File 'lib/aardi/home.rb', line 14 def render Aardi.ledger[:sitemap].update_mtime('/', mtime) write_target end |
#target_path ⇒ Object
19 |
# File 'lib/aardi/home.rb', line 19 def target_path = './index.html' |