Issue #3 List of pages (recent changes)

This commit is contained in:
Alexis Hassler 2019-05-05 21:49:50 +02:00
parent a5d624dbca
commit 6689a5faa5
7 changed files with 25 additions and 6 deletions

View File

@ -21,5 +21,7 @@ global_pages:
text: All the tags
- url: /Special:AllPages
text: All the pages
- url: /Special:RecentChanges
text: Recent changes
- url: /Special:ListUsers
text: All the users

View File

@ -21,5 +21,7 @@ global_pages:
text: Toutes les catégories
- url: /Special:AllPages
text: Tous les pages
- url: /Special:RecentChanges
text: Modifications récentes
- url: /Special:ListUsers
text: Tous les utilisateurs

View File

@ -7,7 +7,7 @@ menu: ['global']
<ul class="columns">
{%- for page in wiki_pages -%}
<li>
<a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ page.slug }}.html">{{ page.title }}</a>
<a href="/{{ page.slug }}.html">{{ page.title }}</a>
{%- if page.author -%}&nbsp;(by <a href="/{{ site.data.i18n[site.lang].prefix.user }}{{ page.author }}.html">{{ page.author }}</a>) {%- endif -%}
</li>
{%- endfor -%}

View File

@ -0,0 +1,15 @@
---
layout: default
title: Recent changes
menu: ['global']
---
{%- include /functions/wiki-pages.html -%}
{%- assign recent_changes = wiki_pages | where_exp: 'page', 'page.modified' | sort: 'modified' | reverse -%}
<ul>
{%- for page in recent_changes limit:20 -%}
<li>
<a href="/{{ page.slug }}.html">{{ page.title }}</a>
&nbsp;- {{ page.modified }}
</li>
{%- endfor -%}
</ul>

View File

@ -4,11 +4,11 @@ title: Old Page
tags: Example
toc: false
author: Alexis
created: 2009-04-12
modified: 2009-04-12
created: 2009-01-01
modified: 2009-01-01
revisions:
- author: Alexis
date: 2009-04-12
date: 2009-01-01
comment: First version
---
<h2>Old</h2>

View File

@ -5,7 +5,7 @@ tags: Example
toc: false
author: Alexis
created: 2009-04-12
modified: 2009-04-12
modified: 2009-05-01
revisions:
- author: Alexis
date: 2009-04-12

View File

@ -5,7 +5,7 @@ tags: Example
toc: false
author: Alexis
created: 2009-04-12
modified: 2009-04-12
modified: 2009-05-04
revisions:
- author: Alexis
date: 2009-04-12