From a84179eaf635588382aea6ac48b3071c2308c4d3 Mon Sep 17 00:00:00 2001 From: rzen Date: Thu, 26 Sep 2019 17:53:28 -0400 Subject: [PATCH] customize index.html for local vs prod environment --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index feb5450..fb3a770 100644 --- a/index.html +++ b/index.html @@ -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 %}
{% include post_index.html posts=all_entries %}