18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/hj7/archive.rb', line 18
def generate(site)
if site.config["archive"]
@layouts = {}
@layouts[:yearly] = site.config["archive"]["yearly_page_layout"]
@layouts[:monthly] = site.config["archive"]["monthly_page_layout"]
@layouts[:daily] = site.config["archive"]["daily_page_layout"]
generate_yearly_archive_pages(site) if @layouts[:yearly]
generate_monthly_archive_pages(site) if @layouts[:monthly]
generate_daily_archive_pages(site) if @layouts[:daily]
end
end
|