Skip to content

Commit

Permalink
separate upcoming from past activities mendicant#19
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Jul 5, 2012
1 parent 68d576c commit 4f85cb4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _includes/upcoming_post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<li class="upcoming">
<a href="{{post.url}}">
{{ post.title }}
<span class="date">{{post.date | date: "%Y %B %d"}}</span>
</a>
</li>
2 changes: 2 additions & 0 deletions _sass/screen.sass
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ul.posts
margin-bottom: 0.5em
span.date
float: right
li.upcoming
background-color: #F7F9D0

.date-time
display: inline-block
Expand Down
6 changes: 5 additions & 1 deletion activities.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ header:

<ul class="posts">
{% for post in site.categories.activities %}
{% include post.html %}
{% if site.time < post.date %}
{% include upcoming_post.html %}
{% else %}
{% include post.html %}
{% endif %}
{% endfor %}
</ul>
3 changes: 3 additions & 0 deletions stylesheets/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ ul.posts li a {
ul.posts li a span.date {
float: right;
}
ul.posts li.upcoming {
background-color: #f7f9d0;
}

.date-time {
display: inline-block;
Expand Down

0 comments on commit 4f85cb4

Please sign in to comment.