diff --git a/config/_default/params.toml b/config/_default/params.toml index 415e3301..2c290954 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -18,6 +18,9 @@ showPagination = true showReadingTime = true +[list] + groupByYear = true + [taxonomy] showTermCount = true diff --git a/layouts/partials/article-pagination.html b/layouts/partials/article-pagination.html index 99d91451..5f382d94 100644 --- a/layouts/partials/article-pagination.html +++ b/layouts/partials/article-pagination.html @@ -6,7 +6,7 @@ {{ if .NextInSection }} - ← + ← - {{ if .Site.Params.article.showDate | default true }} @@ -35,7 +35,7 @@ {{ end }} → + → {{ end }} diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 98664c3f..a00e8b50 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,41 +1,34 @@ - - {{ $paginator := .Paginator }} - {{ if gt $paginator.TotalPages 1 }} -