Skip to content

Commit

Permalink
distinguish between posts and digests in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
pkyeck committed Mar 21, 2014
1 parent 0eec48e commit 5d7aa02
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion source/_includes/asides/recent_posts.html
@@ -1,10 +1,21 @@
<section class="apdev--aside-recent">
<h1>Recent Posts</h1>
<ul id="recent_posts">
{% for post in site.posts limit: site.recent_posts %}
{% for post in site.categories.post limit: site.recent_posts %}
<li class="post">
<a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a>
</li>
{% endfor %}
</ul>
</section>

<section class="apdev--aside-recent">
<h1>Recent Digests</h1>
<ul id="recent_digests">
{% for post in site.categories.digest limit: 5 %}
<li class="post">
<a href="{{ root_url }}{{ post.url }}">{{ post.title | replace:'weekly digest','week'}}</a>
</li>
{% endfor %}
</ul>
</section>

0 comments on commit 5d7aa02

Please sign in to comment.