Created
October 19, 2013 01:56
-
-
Save sodevious/7050831 to your computer and use it in GitHub Desktop.
styling posts in a category - jekyll, from: https://github.com/brenna/brennaobrien.com/blob/master/work/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for post in site.categories['portfolio'] %} | |
<article> | |
<header> | |
<h2 class="work-title">{{post.title}}</h2> | |
<h3 class="work-type">{{post.type}}</h3> | |
{% if post.site_url %}<a class="work-link icon-web" href="{{post.site_url}}"><span>View</span></a>{% endif %} | |
</header> | |
{{post.content}} | |
</article> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment