Module: Hightouch::ArchivePageGenerator
- Included in:
- HelperMethods
- Defined in:
- lib/hightouch/archive_page_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_archive_pages ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/hightouch/archive_page_generator.rb', line 3 def generate_archive_pages [:categories, :tags, :archives].each do |i| blog.send(i).each do |k, v| template_name = v.class.name.split(/::/).last.downcase page v.path, proxy: "/templates/archive.html", ignore: true do @collection = i @archive_name = v.name end end end end |