website/www: blog archives page

This commit is contained in:
Mitchell Hashimoto 2013-09-18 17:41:51 -07:00
parent 155ef1f06e
commit cad42a8308
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,20 @@
---
layout: "inner"
sidebar_current: "blog-archives"
sidebar_template: "blog"
sidebar_title: "Blog"
page_title: "Blog Archive"
---
<div class="Modules blog-archives">
<h2>Blog Archive</h2>
<ul>
<% blog.articles.reverse.each_index do |i| %>
<% article = blog.articles[i] %>
<li>
<a href="<%= article.url %>"><%= article.title %></a>
<span class="meta date"><%= article.date.strftime('%b %e %Y') %></span>
</li>
<% end %>
</ul>
</div> <!-- blog archives -->

View File

@ -28,7 +28,6 @@ page_title: "Blog"
</article> </article>
</div> </div>
</div> <!-- row --> </div> <!-- row -->
</article>
<% end %> <% end %>
</div> <!-- blog landing --> </div> <!-- blog landing -->

View File

@ -1,4 +1,10 @@
.Modules { .Modules {
&.blog-archives {
span.meta.date {
font-size: 12px;
}
}
&.blog-landing, &.blog-post { &.blog-landing, &.blog-post {
article { article {
.meta { .meta {