mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2026-03-23 12:22:36 +01:00
Issue #3 List of pages (long and short)
This commit is contained in:
@@ -7,7 +7,7 @@ menu: ['global']
|
||||
<ul class="columns">
|
||||
{%- for page in wiki_pages -%}
|
||||
<li>
|
||||
<a href="/{{ page.slug }}.html">{{ page.title }}</a>
|
||||
<a href="{{ page.url }}.html">{{ page.title }}</a> [{{ page.bytes }} bytes]
|
||||
{%- if page.author -%} (by <a href="/{{ site.data.i18n[site.lang].prefix.user }}{{ page.author }}.html">{{ page.author }}</a>) {%- endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
|
||||
14
_global/Special:LongPages.html
Normal file
14
_global/Special:LongPages.html
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
title: Long pages
|
||||
menu: ['global']
|
||||
---
|
||||
{%- include /functions/wiki-pages.html -%}
|
||||
{%- assign long_pages = wiki_pages | sort: 'bytes' | reverse -%}
|
||||
<ol>
|
||||
{%- for page in long_pages limit:50 -%}
|
||||
<li>
|
||||
<a href="{{ page.url }}.html">{{ page.title }}</a> [{{ page.bytes }} bytes]
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ol>
|
||||
@@ -8,7 +8,7 @@ menu: ['global']
|
||||
<ul>
|
||||
{%- for page in recent_changes limit:20 -%}
|
||||
<li>
|
||||
<a href="/{{ page.slug }}.html">{{ page.title }}</a>
|
||||
<a href="{{ page.url }}.html">{{ page.title }}</a>
|
||||
- {{ page.modified }}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
|
||||
14
_global/Special:ShortPages.html
Normal file
14
_global/Special:ShortPages.html
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
layout: default
|
||||
title: Short pages
|
||||
menu: ['global']
|
||||
---
|
||||
{%- include /functions/wiki-pages.html -%}
|
||||
{%- assign long_pages = wiki_pages | sort: 'bytes' -%}
|
||||
<ol>
|
||||
{%- for page in long_pages limit:50 -%}
|
||||
<li>
|
||||
<a href="{{ page.url }}.html">{{ page.title }}</a> [{{ page.bytes }} bytes]
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ol>
|
||||
Reference in New Issue
Block a user