From e293f4c50938747a15e92dec8c58dffd7d0db87a Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 16 Aug 2021 10:41:00 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20styles=20for=20pagination?= =?UTF-8?q?=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 3 ++ layouts/partials/article-pagination.html | 4 +-- layouts/partials/pagination.html | 35 ++++++++++-------------- layouts/partials/section-heading.html | 2 +- static/css/main.css | 2 +- 5 files changed, 21 insertions(+), 25 deletions(-) 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 }} -