<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -92,9 +92,9 @@ module Korma
     def all_entries
       entries = []
       author_names.each do |a|
-        entries += entries_for_author(a)
+        entries.concat entries_for_author(a)
       end
-      entries.sort { |a,b| b.published_date &lt;=&gt; a.published_date }
+      entries.sort! { |a,b| b.published_date &lt;=&gt; a.published_date }
     end
 
     def site_feed
@@ -102,9 +102,9 @@ module Korma
     end
 
     def entries_for_author(author)
-      tree = Pathname.glob &quot;#{repository}posts/#{author}/*&quot;
+      tree = Pathname.glob &quot;#{repository}/posts/#{author}/*&quot;
       return [] unless tree
-      tree.map { |e| Entry.new(e, author)  } 
+      tree.select { |e| e.file? }.map { |e| Entry.new(e, author)  } 
     end
 
     def feed(author)
@@ -148,6 +148,9 @@ module Korma
     end
 
     def generate_static_files
+      # fix relative path names
+      self.repository = repository.realpath unless repository.absolute?
+
       mkdir_p www_dir
       cd www_dir
       write &quot;feed.xml&quot;, site_feed
@@ -187,11 +190,11 @@ module Korma
     def erb(file)
       file = repository + &quot;views/#{file}.erb&quot;
       
-      if file.exist?
+      if File.exist? file
         engine = ERB.new(file.read)
         layout { engine.result(binding) }
       else
-        raise &quot;File not found #{file}.erb&quot;
+        raise &quot;File not found #{file}&quot;
       end
     end
 </diff>
      <filename>korma.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>66f2d9104f5cddbd1d4fd91572212276c5c96fa9</id>
    </parent>
    <parent>
      <id>9c74f34a359cc7598a2c0d5c596b801311791094</id>
    </parent>
  </parents>
  <author>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </author>
  <url>http://github.com/sandal/korma/commit/d3c118b7dbcd9534d33730d40af3ddc2ba54af4c</url>
  <id>d3c118b7dbcd9534d33730d40af3ddc2ba54af4c</id>
  <committed-date>2009-06-19T13:04:41-07:00</committed-date>
  <authored-date>2009-06-19T13:04:41-07:00</authored-date>
  <message>Merge branch 'master' of git@github.com:sandal/korma</message>
  <tree>1ae420036e7d5e5162fd1744bbea1bb06096558d</tree>
  <committer>
    <name>Gregory Brown</name>
    <email>gregory.t.brown@gmail.com</email>
  </committer>
</commit>
