Skip to content

Latest commit

 

History

History
67 lines (57 loc) · 1.85 KB

archives.md

File metadata and controls

67 lines (57 loc) · 1.85 KB
layout permalink title
page
/archives/
Archives

{% assign rawtags = "" %} {% for post in site.posts %} {% assign ttags = post.tags | join:'|' | append:'|' %} {% assign rawtags = rawtags | append:ttags %} {% endfor %} {% assign rawtags = rawtags | split:'|' | sort %}

{% assign tags = "" %} {% for tag in rawtags %} {% if tag != "" %} {% if tags == "" %} {% assign tags = tag | split:'|' %} {% endif %} {% unless tags contains tag %} {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %} {% endunless %} {% endif %} {% endfor %}

CatégoriesDate

{% for tag in tags %}

{{ tag }}

{% for post in site.posts %}
    {% for post_tag in post.tags %}
        {% if post_tag == tag %}

{{ post.date | date_to_string }} » [ {{ post.title }} ]({{ post.url }}) {% break %} {% endif %} {% endfor %} {% endfor %} {% endfor %}

Tous les articles

{% for post in site.posts %} {{ post.date | date_to_string }} » [ {{ post.title }} ]({{ post.url }}) {% endfor %}

<script> var rad = document.category_form.selector; rad[0].onclick = function() { document.getElementById("ordered_by_date").style.display = "none"; document.getElementById("ordered_by_categories").style.display = "block"; }; rad[1].onclick = function() { document.getElementById("ordered_by_categories").style.display = "none"; document.getElementById("ordered_by_date").style.display = "block"; }; </script>