Commits

Koen Van der Auwera committed c5d9263

Add last title on tags posts

Comments (0)

Files changed (1)

 
   class Tag < R '/tag/(.+)'
     def get(tag)
+      @last = $store.last
       @posts = $store.posts_for_tag(tag)
       render :multiple
     end
   end
 
   def multiple
+    p {a(href: URL(@last.url).to_s, title: @last.title, class: "last") { "Laatste: #{@last.title}" }}
     count = @posts.length-1
     @posts.each_with_index do |post, i|
       render_post post