diff --git a/lib/dimples/site.rb b/lib/dimples/site.rb
index <HASH>..<HASH> 100644
--- a/lib/dimples/site.rb
+++ b/lib/dimples/site.rb
@@ -83,7 +83,6 @@ module Dimples
     end
 
     def scan_posts
-
       Dir.glob(File.join(@source_paths[:posts], '*.*')).reverse.each do |path|
         post = @post_class.new(self, path)
 
@@ -102,6 +101,11 @@ module Dimples
         @posts << post
       end
 
+      @posts.each_index do |index|
+         posts[index].next_post = @posts.fetch(index - 1, nil) if index - 1 > 0
+        @posts[index].previous_post = @posts.fetch(index + 1, nil) if index + 1 < @posts.count
+      end
+
       @latest_post = @posts.first
     end
 
@@ -190,7 +194,7 @@ module Dimples
 
       path += File.split(paths[0])[-1] + "/" if paths[0] != @output_paths[:site]
       path += paths[1..-1].join('/') + "/" if paths.length > 1
-      
+
       path
     end
Updated the scan_posts method to set a post's neighbours.