Permalink
Browse files

Changed blog post layout

  • Loading branch information...
1 parent 81ff0b2 commit 2fe4b8c79bfca97a2249218fc00b7f49239f983c @timols committed Nov 20, 2012
Showing with 16 additions and 2 deletions.
  1. +2 −2 blog.html
  2. +14 −0 css/style.css
View
@@ -4,8 +4,8 @@
---
<h2>Blog Posts</h2>
-<ul>
+<ul class='posts'>
{% for post in site.posts %}
- <li>{{ post.date | date: "%b, %d %Y" }} - <a href="{{ post.url }}">{{ post.title }}</a></li>
+ <li><span class='post-date'>{{ post.date | date: "%b, %d %Y" }}</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
View
@@ -436,6 +436,20 @@ div.clear {
text-align: center;
}
+.posts {
+ list-style-type: none;
+ margin-left: 0;
+}
+
+.posts li {
+ margin-bottom: 5px;
+}
+
+.post-date {
+ width: 120px;
+ display: inline-block;
+}
+
/**
* Non-semantic helper classes: please define your styles before this section.
*/

0 comments on commit 2fe4b8c

Please sign in to comment.