Closed wragge closed 5 months ago
Thanks @wragge! Yeah, the build in gh-pages jekyll version doesn't support and
in the where_exp. CB-CSV uses lots of and
, so we have to remove them all when transferring stuff into CB-GH. We must of missed this one... You are correct on the fix, we usually just string the two expressions together like:
{%- assign date-items = site.data[site.metadata] | where_exp: 'item', 'item.objectid' | where_exp: 'item','item.parentid == nil' -%}
I pushed the fix! Thank you
If you set
timeline-child-objects: false
intheme.yml
you get a Liquid error on GH Pages:This seems to be because the version of Jekyll running on GH Pages doesn't support complex
where_exp
filters. (see https://github.com/jekyll/jekyll/issues/8046)In
_includes/index/time.html
, the problematic line is:Note the
and
in thewhere_exp
.Getting rid of the
and
by breaking it up into two filters fixes the problem:Though perhaps there's a nicer way of doing this.