Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 40 additions & 16 deletions _includes/decorate.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,47 @@
%}
{% endif %}

{% for year in years %}
{% assign data = year.items %}
{% if site.lang == "jp" %}
{% for year in years %}
{% assign data = year.items %}

{% if include.group_by_year and years.size > 1 %}
{{--}}<h3 id="{{ year.name }}">{{ year.name }}</h3>
{% assign data = data | sort: "date" | reverse %}
{% endif %}
{% if include.group_by_year and years.size > 1 %}
{{--}}<h3 id="{{ year.name }}">{{ year.name }}</h3>
{% assign data = data | sort: "date" | reverse %}
{% endif %}

{% for d in data %}
{%
include decorator_one.html
title=d.title_jp
id=forloop.index
image=d.image
description=d.description_jp
detail_url=d.detail_url
tags=d.tags
%}
{% endfor %}
{% endfor %}

{% else %}
{% for year in years %}
{% assign data = year.items %}

{% if include.group_by_year and years.size > 1 %}
{{--}}<h3 id="{{ year.name }}">{{ year.name }}</h3>
{% assign data = data | sort: "date" | reverse %}
{% endif %}

{% for d in data %}
{%
include decorator_one.html
title=d.title
id=forloop.index
image=d.image
description=d.description
detail_url=d.detail_url
tags=d.tags
%}
{%
include decorator_one.html
title=d.title
id=forloop.index
image=d.image
description=d.description
detail_url=d.detail_url
tags=d.tags
%}
{% endfor %}
{% endfor %}
{% endfor %}
{% endif %}