Skip to content

Instantly share code, notes, and snippets.

@jmreynolds
Created February 19, 2016 20:09
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 jmreynolds/c62d7c13861cb7fab68b to your computer and use it in GitHub Desktop.
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
{% 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