For in with where filter no longer functioning correctly in Jekyll 4.0


I recently converted my project from Jekyll 3.7 to 4.0 and ran into a huge road block that I have not been able to work through.

The problem lies within the variable assignment and the where filter. On each iteration of the main for in loop, I build a new array (myItems). For some reason, in Jekyll 4, this does not work. The Array is empty on both iterations (first 10, then 11). The value on nav_actual is either 10 or 11. Again, working fine in 3.7, but not 4.0. Any ideas on how to get this working in 4.0? I’m stumped.

{% for i in (10…11) %}
{% assign myItems = site.linux | where: “nav_actual”, {{i}} %}

	<div class="column">
		{% if i == 11 %}
		{% endif %}
		<ul data-nav-d="{{i}}">
			{% for item in myItems %}
			{% if item.nav_actual == {{i}} %}
				<a class="desktopNavBtn" href="{{ item.url | append:' ' | replace:'/ ','' }}"><span>{{item.nav_label}}</span></a>
			{% endif %}
			{% endfor %}

	{% endfor %}

Sample Front Matter in the Linux Collection:

title: &title All Linux Learning Snippets
headline: Linux Snippets
permalink: /linux/snippets/
nav_label: Linux Snippets
nav_actual: 10

Help Appreciated