diff --git a/themes/future/layout/authors.ejs b/themes/future/layout/authors.ejs index b75afa0b906..34573c9d697 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() %> +
+
+