mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-13 01:08:49 +01:00
Issue #3 List of pages (recent changes)
This commit is contained in:
parent
a5d624dbca
commit
6689a5faa5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 -%} (by <a href="/{{ site.data.i18n[site.lang].prefix.user }}{{ page.author }}.html">{{ page.author }}</a>) {%- endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
|
||||
15
_global/Special:RecentChanges.html
Normal file
15
_global/Special:RecentChanges.html
Normal 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>
|
||||
- {{ page.modified }}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user