Skip to content

Instantly share code, notes, and snippets.

@neudabei
Created June 13, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neudabei/131cf3eff2856e1bab66 to your computer and use it in GitHub Desktop.
Save neudabei/131cf3eff2856e1bab66 to your computer and use it in GitHub Desktop.
jekyll code
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts in the category [coding]</h1>
<ul class="post-list">
{% for post in site.categories.coding %}
<li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}
{% for category in post.categories %}
[<a class="post-meta" href="/{{category}}">{{category}}</a>]
{% endfor %}
</span>
<h2>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</h2>
</li>
{% endfor %}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment