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

@@ -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>