mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-27 23:38:52 +01:00
Liquid Exception: Liquid error (line 2): Cannot sort a null object. in /github/workspace/_global/Special:AllPages.html
21 lines
625 B
HTML
21 lines
625 B
HTML
---
|
|
layout: default
|
|
title: All pages
|
|
menu: ['global']
|
|
---
|
|
<ul>
|
|
{% if site.data.wiki_pages %}
|
|
{%- assign sorted_page = site.data.wiki_pages | sort: "id" -%}
|
|
{%- for page in sorted_page -%}
|
|
{%- assign page_name = page.id | slice: 1, 50 -%}
|
|
{%- if page_name != page.title -%}
|
|
{%- assign page_name = page_name | append: " - " | append: page.title -%}
|
|
{%- endif -%}
|
|
<li>
|
|
<a href="{{ page.url }}">{{ page_name }}</a> [{{ page.bytes }} bytes]
|
|
{%- if page.author_full -%} (by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%}
|
|
</li>
|
|
{%- endfor -%}
|
|
{% endif %}
|
|
</ul>
|