mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2026-03-20 02:42:53 +01:00
Issue #3 List of pages (recent changes)
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user