From cf1c55fbdd5fcd11b20bec7876154fbc95230425 Mon Sep 17 00:00:00 2001
From: davegson <3080765+davegson@users.noreply.github.com>
Date: Fri, 9 Sep 2022 15:45:19 +0200
Subject: [PATCH] Fix next page query for GH pages

the where_exp is only supported as of Jekyll 4.1 - and GH pages does not support that... workaronud for now
---
 next/index.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/next/index.html b/next/index.html
index 93c3880..02eb651 100644
--- a/next/index.html
+++ b/next/index.html
@@ -16,7 +16,12 @@ layout: page
         </p>
     </div>
     <div class="header-three-right">
+      {% comment %}
+      <!-- this where_exp needs jekyll 4.1 in order to work, but GitHub pages only supports 3.9 -->
       {% assign progress_posts = site.publications | reverse | where_exp: "item", "item.portmaster_update == true or item.progress_update == true" %}
+      <!-- hence we use the simpler version below, even though this now only searches for portmaster_update posts -->
+      {% endcomment %}
+      {% assign progress_posts = site.publications | reverse | where: "portmaster_update", "true" %}
       {% for post in progress_posts limit: 1 %}
         {% include thumbnail_blog.html pre_header="BLOG" %}
       {% endfor %}