Only display progress posts on next page

without that filter it would also display the most recent blog post unrelated to progress
This commit is contained in:
davegson 2020-07-31 18:48:04 +02:00
parent 57c76dd6f3
commit 0c0d033fa2

View file

@ -18,8 +18,8 @@ layout: page
</div>
</div>
<div class="relative mt-24 lg:mt-0 lg:absolute lg:right-0 lg:mr-10">
<!-- blog -->
{% for post in site.posts limit: 1 %}
{% assign progress_posts = site.posts | where: "progress_update", "true" %}
{% for post in progress_posts limit: 1 %}
{% include thumbnail_blog.html pre_header="BLOG" %}
{% endfor %}
</div>