Commits

Koen Van der Auwera committed 5001545

add seperator between posts

Comments (0)

Files changed (2)

     end
   end
 
+  def formatted_published_at(post)
+    post.id.gsub(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/, "Laten vallen op \\3/\\2/\\1 om \\4:\\5u")
+  end
+
   def render_post(post)
     div.post! do
       h2 {a(href: URL(post.url).to_s, title: post.title) { post.title }}
       div.content! { post.html }
-      div.meta! post.id
+      div.meta! formatted_published_at(post)
     end
   end
 
     div.post! class: "last" do
       h2 {a(href: URL(@last.url).to_s, title: @last.title) { @last.title }}
       div.content! { @last.html }
-      div.meta! @last.id
+      div.meta! formatted_published_at(@last)
     end
+    hr
     render_post @random
   end
 
   end
 
   def multiple
-    @posts.each do |post|
+    count = @posts.length-1
+    @posts.each_with_index do |post, i|
       render_post post
+      hr if i < count
     end
   end
 
 
 div#container a.last {
   color: #FF007C;
-}
+}
+
+div#meta {
+  font-size: 0.8em;
+  padding-top: 5px;
+  border-top: 2px solid #DBDADC;
+  color: #363637;
+  width: 350px;
+}
+
+hr {
+  border: 5px solid #FF007C;
+  margin: 2em 0;
+}