Commits

Koen Van der Auwera committed fc9c3ee

render tags page

Comments (0)

Files changed (3)

         meta :"http-equiv" => "X-UA-Compatible", content: "IE=edge,chrome=1"
         meta name: "description", content: "Koen Van der Auwera blog"
         link rel: "alternate", type: "application/rss+xml", title: "RSS", href: URL("/feed").to_s
-        title { defined?(@post) && @post ? @post.title : "AMANDA" }
+        title { defined?(@post) && @post ? @post.title : "Koen Van der Auwera's blog" }
         link rel: "stylesheet", type: "text/css", href: "/s/m.css"
       end
       body do
 
   def archive
     ul class: "archive-list" do
-      $store.posts.each {|p| li {a(href: URL(p.url).to_s, title: p.title) { p.title }}}
+      $store.posts.each {|p| li {a(href: URL(p.url).to_s, title: p.title) { "#{p.published_date} → #{p.title}" }}}
     end
   end
 end
       @published_at ||= Time.mktime(*(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})/.match(id).captures))
     end
 
+    def published_date
+      id.gsub(/(\d{4})(\d{2})(\d{2})(\d{4})/, "\\1-\\2-\\3")
+    end
+
     def html
       @html ||= RDiscount.new(content, :smart).to_html
     end
   margin: 2em 0;
 }
 
-div#tags li {
-  display: inline;
+div#content ul.tag-list li {
+  display: inline-block;
   margin: 0 5px 0 0;
   padding: 2px;
-  font-size: 0.8em;
 }
 
 div#tags a {
   color: #363637;
   border: none;
+  font-size: 0.8em;
 }
 
 div#tags a:hover {