This commit is contained in:
cuu 2024-02-21 23:51:24 -08:00
parent 2ea5541ec5
commit f12ee2050a
7 changed files with 10 additions and 46 deletions

View File

@ -11,7 +11,7 @@ menu: ['global']
{%- assign page_name = page_name | append: " - " | append: page.title -%} {%- assign page_name = page_name | append: " - " | append: page.title -%}
{%- endif -%} {%- endif -%}
<li> <li>
<a href="{{ page.url }}">{{ page_name }}</a>&nbsp; [{{ page.bytes }} bytes] <a href="{{ page.url }}">{{ page_name }}</a>&nbsp;
{%- if page.author_full -%}&nbsp;(by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%} {%- if page.author_full -%}&nbsp;(by <a href="{{ page.author_full.url }}">{{ page.author_full.name }}</a>) {%- endif -%}
</li> </li>
{%- endfor -%} {%- endfor -%}

View File

@ -3,12 +3,12 @@ layout: default
title: Long pages title: Long pages
menu: ['global'] menu: ['global']
--- ---
{% if site.data.wiki_pages %} {% if site.wiki %}
{%- assign long_pages = site.data.wiki_pages | sort: 'bytes' | reverse -%} {%- assign long_pages = site.wiki | sort: 'bytes' | reverse -%}
<ol> <ol>
{%- for page in long_pages limit:50 -%} {%- for page in long_pages limit:50 -%}
<li> <li>
<a href="{{ page.url }}">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes] <a href="{{ page.url }}">{{ page.title }}</a>&nbsp;
</li> </li>
{%- endfor -%} {%- endfor -%}
</ol> </ol>

View File

@ -3,8 +3,8 @@ layout: default
title: Recent changes title: Recent changes
menu: ['global'] menu: ['global']
--- ---
{% if site.data.wiki_pages %} {% if site.wiki %}
{%- assign recent_changes = site.data.wiki_pages | where_exp: 'page', 'page.modified' | sort: 'modified' | reverse -%} {%- assign recent_changes = site.wiki | where_exp: 'page', 'page.modified' | sort: 'modified' | reverse -%}
<ul> <ul>
{%- for page in recent_changes limit:20 -%} {%- for page in recent_changes limit:20 -%}
<li> <li>

View File

@ -3,13 +3,13 @@ layout: default
title: Short pages title: Short pages
menu: ['global'] menu: ['global']
--- ---
{% if site.data.wiki_pages %} {% if site.wiki %}
{%- assign long_pages = site.data.wiki_pages | sort: 'bytes' -%} {%- assign long_pages = site.wiki | sort: 'bytes' -%}
<ol> <ol>
{%- for page in long_pages limit:50 -%} {%- for page in long_pages limit:50 -%}
<li> <li>
<a href="{{ page.url }}">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes] <a href="{{ page.url }}">{{ page.title }}</a>&nbsp;
</li> </li>
{%- endfor -%} {%- endfor -%}
</ol> </ol>

View File

@ -1,17 +0,0 @@
---
layout: wiki
title: Old Page
tags: Example
toc: false
author: Alexis
created: 2009-01-01
modified: 2009-01-02
revisions:
- author: Alexis
date: 2009-01-01
comment: First version
---
<h2>Old</h2>
<p>This is an old page from an ancient Wiki.</p>
<h2>Migrated</h2>
<p>It has been exported as an HTML file, with a frontmatter.</p>

View File

@ -1,6 +1,7 @@
--- ---
layout: simple layout: simple
title: Main title: Main
modified: 2024-02-22
revisions: revisions:
- author: Cuu - author: Cuu
date: 2024-02-22 date: 2024-02-22

View File

@ -1,20 +0,0 @@
---
layout: wiki
title: New Page
tags: Example
toc: false
author: Alexis
created: 2009-04-12
modified: 2009-05-04
revisions:
- author: Alexis
date: 2009-04-12
comment: First version
---
## New
This is an new page designed for Jekyll.
## Markdown
It has been written in Markdown.