Skip to content

Instantly share code, notes, and snippets.

@cassidoo
Created April 10, 2014 05:01
Show Gist options
  • Save cassidoo/10343910 to your computer and use it in GitHub Desktop.
Save cassidoo/10343910 to your computer and use it in GitHub Desktop.
If you want a list of all of your posts in Jekyll, this is it.
<div id="home">
<h1>Blog Posts</h1>
<ul class="posts">
{% for post in site.posts %}
<li><span>{{ post.date | date_to_string }}</span> <br> <a href="{{ post.url }}" class="postname">{{ post.title }}</a></li>
{% endfor %}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment