title: For loops in Liquid: using reversed in conjunction with limit:1
body: <p>I'm building a simple blog using Jekyll, and I'm pulling my hair out trying to figure out this problem. </p>
  
  <p>The index page of the site is meant to feature a single, most recent article, with the structure looking something like below (pardon the mess):</p>
  
  <pre><code>{% for post in site.posts reversed limit:1 %}
      &lt;div class="post"&gt;
          &lt;div class="post-inner"&gt;
              &lt;h3 class="posttitle"&gt;&lt;a href="{{ post.url }}"&gt;{{ post.title }}&lt;/a&gt;&lt;/h3&gt;
              &lt;p class="postdate"&gt;{{ post.date | date: "%d %B %Y" }}&lt;/p&gt;
              {{ post.content }}
              &lt;a href="{{ post.url }}#disqus_thread" class="commentLink"&gt;&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>The above template works perfectly fine when the limit is not restrictive (i.e does not exist or is set to the length of the array). It seems to only be when the limit is <em>actually</em> restricting the result that the loop ignores reversed.</p>
  
  <p>I've tried clearing the browser cache, which is what got it working without limit:1, but the progress ends there.</p>
  
  <p>Thanks for the help, and I would be happy to provide more detail if this is not enough.</p>