Sha256: 96564d3e61a3158133418d0d001bb3c1aa40f4db4a117b6dad49dc0236c3d8b9
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
<!doctype html> <html> <head> <meta charset="utf-8" /> <meta http-equiv='X-UA-Compatible' content='IE=edge;chrome=1' /> <title>Blog Title<%= ' - ' + current_article.title unless current_article.nil? %></title> <%= feed_tag :atom, "#{blog.options.prefix.to_s}/feed.xml", title: "Atom Feed" %> </head> <body> <div id="main" role="main"> <%= yield %> </div> <aside> <h2>Recent Articles</h2> <ol> <% blog.articles[0...10].each do |article| %> <li><%= link_to article.title, article %> <span><%= article.date.strftime('%b %e') %></span></li> <% end %> </ol> <h2>Tags</h2> <ol> <% blog.tags.each do |tag, articles| %> <li><%= link_to tag, tag_path(tag) %> (<%= articles.size %>)</a></li> <% end %> </ol> <h2>By Year</h2> <ol> <% blog.articles.group_by {|a| a.date.year }.each do |year, articles| %> <li><%= link_to year, blog_year_path(year) %> (<%= articles.size %>)</a></li> <% end %> </ol> </aside> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-blog-3.5.1 | lib/middleman-blog/template/source/layout.erb |