include private entries only when running locally

This commit is contained in:
rzen 2020-05-31 16:24:34 -04:00
parent 61608f55d5
commit 1ac5371fd2

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 %}