From 8d79e9f2d8ee73a0cf888621d6ef54a547193690 Mon Sep 17 00:00:00 2001 From: KIIIIT00 Date: Tue, 29 Apr 2025 20:07:10 +0900 Subject: [PATCH] [fix] researches Japanese #22 --- _includes/decorate.html | 56 +++++++++++++++++++++++++++++------------ 1 file changed, 40 insertions(+), 16 deletions(-) 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