customize index.html for local vs prod environment

This commit is contained in:
rzen 2019-09-26 17:53:28 -04:00
parent a510d7380b
commit a84179eaf6

View File

@ -3,7 +3,11 @@ layout: base
title: Home
---
{% assign all_entries = site.blog | concat: site.posts | concat: site.links | concat: site.private | sort: "date" %}
{% if jekyll.environment == "local" %}
{% assign all_entries = site.blog | concat: site.posts | concat: site.links | concat: site.private | sort: "date" %}
{% else %}
{% assign all_entries = site.blog | concat: site.posts | concat: site.links | sort: "date" %}
{% endif %}
<main>
{% include post_index.html posts=all_entries %}