1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-12-25 23:04:06 +00:00
wiki.mbirth.de/index.html

61 lines
1.5 KiB
HTML

---
title: Welcome to the Wiki
layout: default
---
<h3>Latest posts:</h3>
<ul>
{% for post in paginator.posts %}
<li><a href="{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} - {{ post.title }}</a></li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.url | replace: '//', '/' }}">&laquo; Newer</a>
{% else %}
<span>&laquo; Newer</span>
{% endif %}
{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<em>{{ page }}</em>
{% elsif page == 1 %}
<a href="{{ '/index.html' | prepend: site.url | replace: '//', '/' }}">{{ page }}</a>
{% else %}
<a href="{{ site.paginate_path | prepend: site.url | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.url | replace: '//', '/' }}">Older &raquo;</a>
{% else %}
<span>Older &raquo;</span>
{% endif %}
</div>
{% endif %}
{% comment %}
All posts:
<ul>
{% for post in site.posts %}
<li><a href="{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} - {{ post.title }}</a></li>
{% endfor %}
</ul>
Categories:
<ul>
{% for category in site.categories %}
<li>{{ category[0] }}
<ul>
{% for page in category[1] %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endcomment %}