try to fix

Liquid Exception: Liquid error (line 2): Cannot sort a null object. in
 /github/workspace/_global/Special:***
This commit is contained in:
cuu
2024-02-21 23:17:55 -08:00
parent 72b2b073e5
commit 0176419d17
5 changed files with 12 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ layout: default
title: Short pages
menu: ['global']
---
{% if site.data.wiki_pages %}
{%- assign long_pages = site.data.wiki_pages | sort: 'bytes' -%}
<ol>
{%- for page in long_pages limit:50 -%}
@@ -11,3 +13,5 @@ menu: ['global']
</li>
{%- endfor -%}
</ol>
{% endif %}