Created
September 5, 2012 16:37
-
-
Save erjjones/3639558 to your computer and use it in GitHub Desktop.
Get First Post Ruby
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
{% assign first_post = site.posts.first %} | |
{{ first_post.title }} | |
{{ first_post.date | date: "%B %e, %Y" }} | |
{{ first_post.summary }} | |
{% for post in site.posts offset: 1 limit: 50 %} | |
{{ post.title }} | |
{{ post.date | date: "%B %e, %Y" }} | |
{% for tag in post.tags %} | |
{{ tag }} | |
{% if forloop.last != true %} | |
{% endif %} | |
{% endfor %} | |
{{ post.category }} | |
{{ post.summary }} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment