mirror of
https://github.com/clockworkpi/wiki.clockworkpi.com.git
synced 2025-12-12 16:58:50 +01:00
Small fixes
This commit is contained in:
parent
a47fa3720f
commit
a05643fc76
@ -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> [{{ page.bytes }} bytes]
|
||||
<a href="{{ page.url }}.html">{{ page_name }}</a> [{{ page.bytes }} bytes]
|
||||
{%- if page.author_full -%} (by <a href="{{ page.author_full.url }}.html">{{ page.author_full.name }}</a>) {%- endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
|
||||
@ -4,7 +4,8 @@ title: Tags
|
||||
menu: ['global']
|
||||
---
|
||||
<ul>
|
||||
{%- for tag in site.data.wiki_tags -%}
|
||||
{%- assign sorted_tags = site.data.wiki_tags | sort -%}
|
||||
{%- for tag in sorted_tags -%}
|
||||
{%- assign counter = 0 -%}
|
||||
{%- for other_page in site.data.wiki_pages %}
|
||||
{%- if other_page.tags contains tag -%}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user