From 2c7773b9cb39c1c1005915771f765654981fbb96 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Fri, 1 Jun 2018 00:36:52 +0800 Subject: feat(config): configure to show archive count Close #46 --- layouts/_default/section.html | 2 +- layouts/post/single.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 900f4d7..fbe80f1 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -3,7 +3,7 @@ {{ define "content"}} {{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
- {{- if not $paginator.HasPrev }} + {{- if and (not $paginator.HasPrev) .Site.Params.showArchiveCount }}
{{ T "archiveCounter" (len .Data.Pages) }} diff --git a/layouts/post/single.html b/layouts/post/single.html index 50e4656..61fbf8c 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -62,7 +62,7 @@ {{ with .PrevInSection }} {{- end }} -- cgit v1.2.3