mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-12 16:58:50 +01:00
try to fix
Liquid Exception: Liquid error (line 2): Cannot sort a null object. in /github/workspace/_global/Special:AllPages.html
This commit is contained in:
parent
c4279a8c59
commit
72b2b073e5
@ -4,6 +4,7 @@ title: All pages
|
|||||||
menu: ['global']
|
menu: ['global']
|
||||||
---
|
---
|
||||||
<ul>
|
<ul>
|
||||||
|
{% if site.data.wiki_pages %}
|
||||||
{%- assign sorted_page = site.data.wiki_pages | sort: "id" -%}
|
{%- assign sorted_page = site.data.wiki_pages | sort: "id" -%}
|
||||||
{%- for page in sorted_page -%}
|
{%- for page in sorted_page -%}
|
||||||
{%- assign page_name = page.id | slice: 1, 50 -%}
|
{%- assign page_name = page.id | slice: 1, 50 -%}
|
||||||
@ -15,4 +16,5 @@ menu: ['global']
|
|||||||
{%- if page.author_full -%} (by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%}
|
{%- if page.author_full -%} (by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%}
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user