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
|
title: All pages
|
||||||
menu: ['global']
|
menu: ['global']
|
||||||
---
|
---
|
||||||
<ul class="columns">
|
<ul>
|
||||||
{%- for page in site.data.wiki_pages -%}
|
{%- 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>
|
<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 -%}
|
{%- if page.author_full -%} (by <a href="{{ page.author_full.url }}.html">{{ page.author_full.name }}</a>) {%- endif -%}
|
||||||
</li>
|
</li>
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|||||||
@ -4,12 +4,13 @@ title: Tags
|
|||||||
menu: ['global']
|
menu: ['global']
|
||||||
---
|
---
|
||||||
<ul>
|
<ul>
|
||||||
{%- for tag in site.data.wiki_tags -%}
|
{%- assign sorted_tags = site.data.wiki_tags | sort -%}
|
||||||
|
{%- for tag in sorted_tags -%}
|
||||||
{%- assign counter = 0 -%}
|
{%- assign counter = 0 -%}
|
||||||
{%- for other_page in site.data.wiki_pages %}
|
{%- for other_page in site.data.wiki_pages %}
|
||||||
{%- if other_page.tags contains tag -%}
|
{%- if other_page.tags contains tag -%}
|
||||||
{%- assign counter = counter | plus: 1 -%}
|
{%- assign counter = counter | plus: 1 -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
||||||
<li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a> ({{counter}} pages)</li>
|
<li><a href="/{{ site.data.i18n[site.lang].prefix.tag }}{{ tag }}.html">{{ tag }}</a> ({{counter}} pages)</li>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user