crazy-toads.github.io/pages/cercles.md

34 lines
1.2 KiB
Markdown
Raw Normal View History

2017-08-28 19:25:46 +00:00
---
layout: page
title: "Cercles"
permalink: "/cercles/"
2017-09-05 20:37:17 +00:00
description: "Classement par cercles"
2017-08-28 19:25:46 +00:00
comments: false
sitemap: false
category: base
---
{% capture site_categories %}{% for cercle in site.categories %}{{ cercle | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign categories_list = site_categories | split:',' | sort %}
{% for item in (0..site.categories.size) %}{% unless forloop.last %}
{% capture this_word %}{{ categories_list[item] | strip_newlines }}{% endcapture %}
2017-09-08 11:55:04 +00:00
2017-08-28 19:25:46 +00:00
<h2 id="{{ this_word }}">{{ this_word }}</h2>
2017-09-08 11:55:04 +00:00
{% if site.data.categories[this_word] %}
<div class="categorytext">{{ site.data.categories[this_word] }}</div>
{% endif %}
2017-08-28 19:25:46 +00:00
<ul class="post-list">
{% for post in site.categories[this_word] %}{% if post.title != null %}
2017-08-31 13:16:26 +00:00
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}<span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time></span></a>
<div class="description">
{{ post.description | markdownify | remove: '<p>' | remove: '</p>' }}
<a href="{{ site.url }}{{ post.url }}" class="readmore">lire la suite</a>
</div>
</li>
2017-08-28 19:25:46 +00:00
{% endif %}{% endfor %}
</ul>
{% endunless %}{% endfor %}