From 1ac5371fd2bc242c3494969a1e2730413a75d165 Mon Sep 17 00:00:00 2001 From: rzen Date: Sun, 31 May 2020 16:24:34 -0400 Subject: [PATCH] include private entries only when running locally --- 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 %}