Small fixes

This commit is contained in:
Alexis Hassler
2019-05-19 18:23:17 +02:00
parent a47fa3720f
commit a05643fc76
2 changed files with 11 additions and 5 deletions

View File

@@ -3,10 +3,15 @@ layout: default
title: All pages
menu: ['global']
---
<ul class="columns">
{%- for page in site.data.wiki_pages -%}
<ul>
{%- assign sorted_page = site.data.wiki_pages | sort: "id" -%}
{%- for page in sorted_page -%}
{%- assign page_name = page.id | slice: 1, 50 -%}
{%- if page_name != page.title -%}
{%- assign page_name = page_name | append: " - " | append: page.title -%}
{%- endif -%}
<li>
<a href="{{ page.url }}.html">{{ page.title }}</a>&nbsp; [{{ page.bytes }} bytes]
<a href="{{ page.url }}.html">{{ page_name }}</a>&nbsp; [{{ page.bytes }} bytes]
{%- if page.author_full -%}&nbsp;(by <a href="{{ page.author_full.url }}.html">{{ page.author_full.name }}</a>) {%- endif -%}
</li>
{%- endfor -%}