Skip to content

Commit

Permalink
added sub post structure for ideas and events
Browse files Browse the repository at this point in the history
  • Loading branch information
thoward committed Mar 6, 2012
1 parent ff040f8 commit ead5202
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
9 changes: 9 additions & 0 deletions _includes/event.html
@@ -0,0 +1,9 @@
<div class="event">
{% if item.slug %}<a class="slug" name="{{item.slug}}">{% endif %}
{% if item.title %}<h3>{{item.title}}</h3>{% endif %}
{% if item.slug %}</a>{% endif %}
{% if item.date %}<small class='date'>{{item.date | date:"%b %d %Y"}}</small>{% endif %}
<div class="event description">
{{item.content}}
</div>
</div>
13 changes: 13 additions & 0 deletions _includes/idea.html
@@ -0,0 +1,13 @@
<div class="idea">
<div class="idea vote">
<a href="#" title="up" class="vote up"></a>
<a href="#" title="down" class="vote down"></a>
</div>
{% if item.slug %}<a class="slug" name="{{item.slug}}">{% endif %}
{% if item.title %}<h3>{{item.title}}</h3>{% endif %}
{% if item.slug %}</a>{% endif %}
{% if item.date %}<small class='date'>{{item.date | date:"%b %d %Y"}}</small>{% endif %}
<div class="idea description">
{{item.content}}
</div>
</div>
12 changes: 10 additions & 2 deletions index.html
Expand Up @@ -9,7 +9,11 @@
<div class="column vote">
<div class="section">
<h2>IDEAS</h2>
Coming soon...
<div class='ideas'>
{% for item in site.categories['ideas'] limit:30 %}
{% include idea.html %}
{% endfor %}
</div>
</div>
</div>
<div class="column group">
Expand Down Expand Up @@ -66,7 +70,11 @@ <h2>Discussion</h2>
<div class="column create">
<div class="section">
<h2>EVENTS</h2>
Coming soon...
<div class='events'>
{% for item in site.categories['events'] limit:30 %}
{% include event.html %}
{% endfor %}
</div>
</div>
</div>
<b class="clear"></b>
Expand Down

0 comments on commit ead5202

Please sign in to comment.