Method: Plate::Dsl#archives
- Defined in:
- lib/plate/dsl.rb
#archives(item_type, options = {}, &block) ⇒ Object
Loop through the given item name to generate archive pages.
Available item types are:
-
:category
-
:tag
-
:year
-
:month
-
:day
84 85 86 87 88 89 |
# File 'lib/plate/dsl.rb', line 84 def archives(item_type, = {}, &block) # If there is a method to return the list of items if self.respond_to?("archive_#{item_type}_items") self.send("archive_#{item_type}_items", , &block) end end |