Recent posts sidebar now correctly observes titlecase settings

This commit is contained in:
Brandon Mathis 2013-05-09 16:36:08 -05:00
parent ac5d2538ec
commit e83dfccc4f

View File

@ -3,7 +3,7 @@
<ul id="recent_posts">
{% for post in site.posts limit: site.recent_posts %}
<li class="post">
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
<a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a>
</li>
{% endfor %}
</ul>