Skip to content

Commit

Permalink
feat: sort people by year
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirrito-k423 committed Jan 21, 2024
1 parent 6a2c3b8 commit 37ed0f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/people/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1>教师们</h1>

<h1>博士研究生</h1>
<div class="people-group">
{{ range .Pages.ByPublishDate.Reverse }}
{{ range sort .Pages "Params.year_enrollment_PhD" }}
{{ $RelPermalink := .RelPermalink }}
{{ $cn_name := .Params.cn_name }}
{{ $cn_level := .Params.cn_level }}
Expand Down Expand Up @@ -92,7 +92,7 @@ <h1>博士研究生</h1>

<h1>硕士研究生</h1>
<div class="people-group">
{{ range .Pages.ByPublishDate.Reverse }}
{{ range sort .Pages "Params.year_enrollment" }}
{{ $RelPermalink := .RelPermalink }}
{{ $cn_name := .Params.cn_name }}
{{ $cn_level := .Params.cn_level }}
Expand Down Expand Up @@ -136,7 +136,7 @@ <h1>硕士研究生</h1>

<h1>本科生</h1>
<div class="people-group">
{{ range .Pages.ByPublishDate.Reverse }}
{{ range sort .Pages "Params.year_enrollment_undergraduate" }}
{{ $RelPermalink := .RelPermalink }}
{{ $cn_name := .Params.cn_name }}
{{ $cn_level := .Params.cn_level }}
Expand Down

0 comments on commit 37ed0f5

Please sign in to comment.