--- layout: archive --- {{ content }}

カテゴリ一覧

{% comment %} Make sure that all collections are listed in the _config.yml. {% endcomment %} {% assign entries_layout = page.entries_layout | default: 'list' %} {% for label in site.collections_order %} {% assign collection = site.collections | where: "label", label | first %}

{{ collection.name }}

{% comment %} First, render ordered pages {% endcomment %} {% assign ordered_post = "" | split: "" %} {% if collection.order %} {% for file in collection.order %} {% assign docpath = "_" | append: collection.label | append: "/" | append: file %} {% assign post = collection.docs | where: "path", docpath | first %} {% if post %} {% include archive-single.html type=entries_layout %} {% assign ordered_post = ordered_post | push: docpath %} {% else %}

{{docpath}} not found!

{% endif %} {% endfor %} {% endif %} {% comment %} Second, render pages not listed in the order array {% endcomment %} {% for post in collection.docs %} {% assign already_rendered = ordered_post | where_exp: "path", "path == post.path" | size %} {% if already_rendered == 0 %} {% include archive-single.html type=entries_layout %} {% endif %} {% endfor %}
{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑
{% endfor %}