Skip to content

Instantly share code, notes, and snippets.

@erjjones
Created March 22, 2012 02:07
Show Gist options
  • Save erjjones/2155150 to your computer and use it in GitHub Desktop.
Save erjjones/2155150 to your computer and use it in GitHub Desktop.
Jekyll-Tag-Include
<h2>{{page.title}}</h2>
<table class="table table-striped">
<tbody>
{% for post in site.posts %}
{% for tag in post.tags %}
{% if tag == page.tag %}
<tr>
<td>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p><strong>{{ post.date | date: "%B %e, %Y" }}</strong> . {{ post.category }} . <a href="http://erjjones.github.com{{ post.url }}#disqus_thread" data-disqus-identifier="{{ post.url }}"></a>
<br/><small><i>{{ post.summary }}</i></small>
<br/><small><i class="icon-tags"></i> {% for tag in post.tags %} <a href="/tags/{{ tag }}" title="View posts tagged with &quot;{{ tag }}&quot;"><u>{{ tag }}</u></a> {% if forloop.last != true %} {% endif %} {% endfor %} </small></p>
</td>
</tr>
{% endif %}
{% endfor %}
{% endfor %}
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment