Created
February 19, 2016 20:09
-
-
Save jmreynolds/c62d7c13861cb7fab68b to your computer and use it in GitHub Desktop.
Should let me display info about upcoming posts in jekyll
From http://stackoverflow.com/questions/24353638/show-only-future-posts-in-jekyll
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 curDate = site.time | date: '%s' %} | |
{% for post in site.posts %} | |
{% assign postStartDate = post.date | date: '%s' %} | |
{% if postStartDate >= curDate %} | |
Post datas here | |
{% endif %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment