Sha256: 547c196e7fe7ead7f23628b0fa7363c75ff37047f27c4f2ccc3869c5af828b82
Contents?: true
Size: 974 Bytes
Versions: 2
Compression:
Stored size: 974 Bytes
Contents
module SemiStatic ## # Index is used to generate several site index pages that don't have a # fixed path (i.e., the yearly index pages) from a single source file. # It can have a Layout and use any number of Snippets. Index's modification # time is the most recent of itself, its layout, and any Snippets used. # Indices are also considered out-of-date if any posts in the index's range # are changed. class Index < Base include Convertable ## # Posts in range for the Index's current path. attr_accessor :posts ## # The Index's current context (usually a Date). attr_accessor :context ## # Initializes a new Index # # +site+:: The Site object we belong to # +path+:: The relative path to the source file def initialize(site, path) super @metadata = [ :layout ] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zzot-semi-static-0.0.3 | lib/semi-static/index.rb |
zzot-semi-static-0.0.4 | lib/semi-static/index.rb |