From f12ee2050a059875295621b4bffd77c98af2c1c8 Mon Sep 17 00:00:00 2001 From: cuu Date: Wed, 21 Feb 2024 23:51:24 -0800 Subject: [PATCH] fix --- _global/Special:AllPages.html | 2 +- _global/Special:LongPages.html | 6 +++--- _global/Special:RecentChanges.html | 4 ++-- _global/Special:ShortPages.html | 6 +++--- _wiki-legacy/Old.html | 17 ----------------- _wiki/Main.md | 1 + _wiki/New.md | 20 -------------------- 7 files changed, 10 insertions(+), 46 deletions(-) delete mode 100644 _wiki-legacy/Old.html delete mode 100644 _wiki/New.md diff --git a/_global/Special:AllPages.html b/_global/Special:AllPages.html index 9fe3350..ec130bc 100644 --- a/_global/Special:AllPages.html +++ b/_global/Special:AllPages.html @@ -11,7 +11,7 @@ menu: ['global'] {%- assign page_name = page_name | append: " - " | append: page.title -%} {%- endif -%}
  • - {{ page_name }}  [{{ page.bytes }} bytes] + {{ page_name }}  {%- if page.author_full -%} (by {{ page.author_full.name }}) {%- endif -%}
  • {%- endfor -%} diff --git a/_global/Special:LongPages.html b/_global/Special:LongPages.html index 7b0c8a5..f39ace4 100644 --- a/_global/Special:LongPages.html +++ b/_global/Special:LongPages.html @@ -3,12 +3,12 @@ layout: default title: Long pages menu: ['global'] --- -{% if site.data.wiki_pages %} -{%- assign long_pages = site.data.wiki_pages | sort: 'bytes' | reverse -%} +{% if site.wiki %} +{%- assign long_pages = site.wiki | sort: 'bytes' | reverse -%}
      {%- for page in long_pages limit:50 -%}
    1. - {{ page.title }}  [{{ page.bytes }} bytes] + {{ page.title }} 
    2. {%- endfor -%}
    diff --git a/_global/Special:RecentChanges.html b/_global/Special:RecentChanges.html index f2c9094..3871e5f 100644 --- a/_global/Special:RecentChanges.html +++ b/_global/Special:RecentChanges.html @@ -3,8 +3,8 @@ layout: default title: Recent changes menu: ['global'] --- -{% if site.data.wiki_pages %} -{%- assign recent_changes = site.data.wiki_pages | where_exp: 'page', 'page.modified' | sort: 'modified' | reverse -%} +{% if site.wiki %} +{%- assign recent_changes = site.wiki | where_exp: 'page', 'page.modified' | sort: 'modified' | reverse -%}