lib/toto.rb in ceilingfish-toto-0.4.3 vs lib/toto.rb in ceilingfish-toto-0.4.4

- old
+ new

@@ -65,11 +65,11 @@ module PageHelpers include ConfigHelpers def archives filter = "" entries = ! self.articles.empty?? - self.articles.reverse.select do |a| + self.articles.select do |a| filter !~ /^\d{4}/ || a.path =~ /^\/#{filter}/ end : [] return Archives.new(entries, @config) end @@ -77,10 +77,10 @@ def title self[:title] end def articles ext = self[:ext] - Dir["#{Paths[:articles]}/*.#{ext}"].reverse.map do |article| + Dir["#{Paths[:articles]}/*.#{ext}"].map do |article| Article.new article, @config end end def root