Added progress bars in project presentation on main page

This commit is contained in:
phil 2013-07-09 00:09:49 +02:00
parent 5a5773042a
commit f571da7fe2
17 changed files with 361 additions and 34 deletions

View file

@ -0,0 +1,47 @@
---
layout: ikrpg
categories: [ Portal ]
tags: [ Factual dimension, Geographic dimension, Time dimension ]
---
<p>
All pages contained in the IKRPG wiki are listed here. They are either a standalone category page or
assigned to a subproject.
</p>
{% assign sorted_posts = site.posts | sort:"title" %}
<h2 id="Pages">Pages</h2>
<ul>
{% for post in sorted_posts %}
{% if post.categories == empty %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% comment %}
The below code displays the categories in *sorted* order.
{% endcomment %}
{% capture get_items %}
{% for cat in site.categories %}
{{ cat | first | replace: ' ', '_' }}
{% endfor %}
{% endcapture %}
{% capture num_words %}
{{ get_items | split:' ' | sort | join:' ' | number_of_words }}
{% endcapture %}
{% for item in (1..num_words) %}
{% assign category = get_items | split:' ' | sort | join:' ' | truncatewords:item | remove:'...' | split:' ' | last | replace: '_', ' ' %}
<h2>{{ category | upcase }}</h2>
<ul>
{% for post in sorted_posts %}
{% if post.categories contains category %}
<li>
<a href="{{ post.url }}">{{ post.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}