diff --git a/_includes/decorate.html b/_includes/decorate.html index 3f0dc367..f00c7198 100644 --- a/_includes/decorate.html +++ b/_includes/decorate.html @@ -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 %} - {{--}}

{{ year.name }}

- {% assign data = data | sort: "date" | reverse %} - {% endif %} + {% if include.group_by_year and years.size > 1 %} + {{--}}

{{ year.name }}

+ {% 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 %} + {{--}}

{{ year.name }}

+ {% 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 %} \ No newline at end of file +{% endif %} \ No newline at end of file