From e7fd21eb7879738a4a6028fd984a76ac14d0dbde Mon Sep 17 00:00:00 2001 From: ma91n Date: Thu, 11 Sep 2025 10:04:13 +0900 Subject: [PATCH] =?UTF-8?q?=E8=91=97=E8=80=85=E4=B8=80=E8=A6=A7=E3=82=92?= =?UTF-8?q?=E5=85=A8=E6=9C=9F=E9=96=93=E3=80=81=E6=98=8E=E7=B4=B0=E3=81=BE?= =?UTF-8?q?=E3=81=A7=E5=87=BA=E5=8A=9B=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/future/layout/authors.ejs | 148 +++++++++++++------------------ 1 file changed, 62 insertions(+), 86 deletions(-) diff --git a/themes/future/layout/authors.ejs b/themes/future/layout/authors.ejs index b75afa0b9060..34573c9d6973 100644 --- a/themes/future/layout/authors.ejs +++ b/themes/future/layout/authors.ejs @@ -1,86 +1,62 @@ -
- -
-
-
- - -

<%= date(new Date(), 'YYYY') %>年の執筆者

-
    -
  • <%= count_authors(date(new Date(), 'YYYY')) %>
  • -
  • <%= count_articles_year(date(new Date(), 'YYYY')) %>
    投稿
  • -
- <%- list_authors(date(new Date(), 'YYYY')) %> - <% - const lastYear = new Date(); - lastYear.setFullYear(lastYear.getFullYear() - 1); - %> -

<%= date(lastYear, 'YYYY') %>年の執筆者

-
    -
  • <%= count_authors(date(lastYear, 'YYYY')) %>
  • -
  • <%= count_articles_year(date(lastYear, 'YYYY')) %>
    投稿
  • -
- <%- list_authors(date(lastYear, 'YYYY')) %> - <% - const ago2Year = new Date(); - ago2Year.setFullYear(ago2Year.getFullYear() - 2); - %> -

<%= date(ago2Year, 'YYYY') %>年の執筆者

-
    -
  • <%= count_authors(date(ago2Year, 'YYYY')) %>
  • -
  • <%= count_articles_year(date(ago2Year, 'YYYY')) %>
    投稿
  • -
- <%- list_authors(date(ago2Year, 'YYYY')) %> - <% - const ago3Year = new Date(); - ago3Year.setFullYear(ago3Year.getFullYear() - 3); - %> -

<%= date(ago3Year, 'YYYY') %>年の執筆者

-
    -
  • <%= count_authors(date(ago3Year, 'YYYY')) %>
  • -
  • <%= count_articles_year(date(ago3Year, 'YYYY')) %>
    投稿
  • -
- <%- list_authors(date(ago3Year, 'YYYY')) %> - -

全期間の執筆者

-
    -
  • <%= count_authors() %>
  • -
  • <%= count_articles() %>
    投稿
  • -
- <%- list_authors() %> -
-
-
+
+ +
+
+
+ + + + <% + const currentYear = new Date().getFullYear(); + for (let year = currentYear; year >= 2016; year--) { + %> +

<%= year %>年の執筆者

+
    +
  • <%= count_authors(year.toString()) %>
  • +
  • <%= count_articles_year(year.toString()) %>
    投稿
  • +
+ <%- list_authors(year.toString()) %> + <% } %> + +

全期間の執筆者

+
    +
  • <%= count_authors() %>
  • +
  • <%= count_articles() %>
    投稿
  • +
+ <%- list_authors() %> +
+
+